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 ' . count($data_diff1) . " entries\n";
Output for 5.3.2 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7

Process exited with code 137.

preferences:
130.33 ms | 402 KiB | 118 Q