3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $i=0; while($i < 60000) { unserialize(serialize(array('a'=>'b','c'=>'d'))); } $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds and returned entries\n";
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected '' seconds and returned entries' (T_ENCAPSED_AND_WHITESPACE) in /in/A9Q9Q on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/A9Q9Q on line 12
Process exited with code 255.

preferences:
172.16 ms | 1395 KiB | 41 Q