3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d =getdate(); for($i=1;$i<=12;$i++){ if($i==$d["mon"]){ var_dump($d); }
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
Parse error: syntax error, unexpected end of file in /in/YpA28 on line 8
Process exited with code 255.

preferences:
187.08 ms | 1395 KiB | 66 Q