3v4l.org

run code in 300+ PHP versions simultaneously
<?php function estado($date_atual1, $date_insc1 ){ $date_insc1=2025-01-12; $date_atual1=2029-01-05; $st; if (strtotime($date_atual1 < $date_insc1)){ return $st = 1; //return true; //echo 'Inscrições abertas'; }elseif (strtotime($date_atual1 == $date_insc1)){ return $st = 1; //return true; //echo 'Inscrições abertas'; }else{ return $st = 0; //echo 'Inscrições encerradas '; //return false; //echo $st; } return $st; } echo estado();
Output for 7.4.0 - 7.4.30, 8.0.1 - 8.0.20, 8.1.0 - 8.1.7
Fatal error: Uncaught ArgumentCountError: Too few arguments to function estado(), 0 passed in /in/pGeKW on line 25 and exactly 2 expected in /in/pGeKW:2 Stack trace: #0 /in/pGeKW(25): estado() #1 {main} thrown in /in/pGeKW on line 2
Process exited with code 255.

preferences:
18.04 ms | 409 KiB | 5 Q