3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
]<?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) { return $x ^= $v; })
Output for 5.4.0 - 5.5.12
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/rLjaI 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/rLjaI on line 4
Process exited with code 255.