3v4l.org

run code in 300+ PHP versions simultaneously
<?php function log ($a) { return $a + 1; } $b = log(3); var_dump($b);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Fatal error: Cannot redeclare log() in /in/80haj on line 4
Process exited with code 255.

preferences:
197.72 ms | 1395 KiB | 60 Q