3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function b() { print_r(array_map(array($this, 'c'), array(1))); } private function c($d) {return $d+1} }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.26
Parse error: syntax error, unexpected '}' in /in/pl5gT on line 7
Process exited with code 255.

preferences:
186.84 ms | 1386 KiB | 63 Q