Anonymous View

3v4l.org

run code in 500+ PHP versions simultaneously
<?php $_POST['event_id'] = '1'; function executeDone() { $eventId = (isset($_POST['event_id'])) ? (int)$_POST['event_id'] : ''; var_dump($eventId); } $res = executeDone();
Output for 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
int(1)

preferences:
44.25 ms | 745 KiB | 4 Q