3v4l.org

run code in 300+ PHP versions simultaneously
]<?php $arr = array(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8); echo array_reduce($arr, function($x, $v) { $x ^= $v; return $x; })
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/MZJl4 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/MZJl4 on line 4
Process exited with code 255.

preferences:
197 ms | 1395 KiB | 65 Q