3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data=new DateTime('31/2/2013'); print_r($data); echo ((31)%31)."\n"; echo date('d'); echo ((30+1)%31)."\n"; //echo $data->add(new DateInterval('P1D'))."\n"; if(preg_match('#^(\d{2})/(\d{2})/(\d{4})$#', '10/12/2010', $matches) echo "Match";
Output for 5.4.0 - 5.4.22, 5.5.0 - 5.5.6
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/j1toB on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/j1toB on line 9
Process exited with code 255.

preferences:
171.98 ms | 1394 KiB | 65 Q