3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __toString() { return null; } } $array = array(); $a = new A: $array[$a] = $a; $array[$a] = $a; var_dump($array);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.40.0030.03316.47
5.4.30.0030.03316.46
5.4.20.0000.03716.37
5.4.10.0000.03716.56
5.4.00.0070.03015.75
5.3.140.0000.04014.66
5.3.130.0070.03314.64
5.3.120.0030.03714.55
5.3.110.0000.04014.57
5.3.100.0030.03714.09
5.3.90.0030.03313.97
5.3.80.0000.04013.86
5.3.70.0030.04013.90
5.3.60.0030.03314.04
5.3.50.0030.03713.84
5.3.40.0000.04014.00
5.3.30.0030.03313.76
5.3.20.0030.03313.73
5.3.10.0000.03713.69
5.3.00.0070.04013.68

preferences:
138.2 ms | 1394 KiB | 7 Q