3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new \StdClass; $bar = new \StdClass; $foo->bar = $bar; $bar->foo = $foo; $array = array('foo' => $foo, 'bar' => $bar); $hash = array[]; rwalk($array); function rwalk($array) { if (is_array($array)) { foreach ($array as $key => $value) { if (is_object($value)) { $value = (array) $value; $objHash = spl_object_hash($value); } if (is_array($value) && !in_array($objHash, $hash)) { $hash[] = $objHash; rwalk($value); } } } }

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.270.0100.07018.96
5.4.260.0030.06018.80
5.4.250.0070.05719.00
5.4.240.0100.05319.00
5.4.230.0230.05318.96
5.4.220.0130.06718.80
5.4.210.0130.06719.10
5.4.200.0100.05018.94
5.4.190.0100.05319.02
5.4.180.0170.06719.11
5.4.170.0200.06018.79
5.4.160.0100.08018.93
5.4.150.0100.05719.08
5.4.140.0200.06316.48
5.4.130.0030.07316.37
5.4.120.0130.04716.36
5.4.110.0030.05316.33
5.4.100.0170.06016.42
5.4.90.0200.05316.55
5.4.80.0100.04716.45
5.4.70.0070.05016.39
5.4.60.0070.05316.38
5.4.50.0000.05316.60
5.4.40.0100.05316.60
5.4.30.0000.05716.53
5.4.20.0100.06316.59
5.4.10.0100.06016.30
5.4.00.0130.06315.87
5.3.280.0100.05314.60
5.3.270.0100.06314.61
5.3.260.0070.05714.65
5.3.250.0200.06014.47
5.3.240.0100.07314.49
5.3.230.0130.04714.62
5.3.220.0170.05314.27
5.3.210.0130.04714.58
5.3.200.0200.06314.36
5.3.190.0070.05014.57
5.3.180.0200.04314.61
5.3.170.0130.06014.56
5.3.160.0130.04714.72
5.3.150.0070.07314.56
5.3.140.0100.05314.39
5.3.130.0200.06714.70
5.3.120.0170.06714.42
5.3.110.0170.04314.47
5.3.100.0070.05313.91
5.3.90.0100.04714.01
5.3.80.0170.04313.88
5.3.70.0170.05013.96
5.3.60.0130.04313.94
5.3.50.0030.05313.79
5.3.40.0070.05313.96
5.3.30.0070.07713.82
5.3.20.0130.05013.40
5.3.10.0130.04313.74
5.3.00.0070.07313.53
5.2.170.0100.04011.08
5.2.160.0130.05311.08
5.2.150.0100.05011.05
5.2.140.0070.04011.06
5.2.130.0100.04011.10
5.2.120.0000.05011.11
5.2.110.0070.04011.12
5.2.100.0100.05311.00
5.2.90.0100.04011.12
5.2.80.0070.05011.21
5.2.70.0030.06011.10
5.2.60.0000.06011.07
5.2.50.0170.03310.86
5.2.40.0030.05311.15
5.2.30.0070.06010.88
5.2.20.0070.04311.11
5.2.10.0030.05310.84
5.2.00.0070.04710.88
5.1.60.0100.03310.06
5.1.50.0000.05010.18
5.1.40.0030.0379.88
5.1.30.0070.04010.31
5.1.20.0130.03710.43
5.1.10.0100.04310.26
5.1.00.0070.03310.11
5.0.50.0070.0338.61
5.0.40.0070.0278.34
5.0.30.0070.0378.31
5.0.20.0030.0378.25
5.0.10.0000.0308.13
5.0.00.0200.0408.21
4.4.90.0100.0236.18
4.4.80.0030.0376.06
4.4.70.0130.0135.96
4.4.60.0000.0275.93
4.4.50.0000.0235.92
4.4.40.0070.0405.90
4.4.30.0100.0205.90
4.4.20.0070.0176.28
4.4.10.0130.0236.28
4.4.00.0000.0336.28
4.3.110.0030.0206.28
4.3.100.0000.0236.28
4.3.90.0030.0236.28
4.3.80.0000.0436.28
4.3.70.0070.0206.28
4.3.60.0030.0236.28
4.3.50.0070.0236.28
4.3.40.0000.0376.28
4.3.30.0070.0176.28
4.3.20.0030.0206.28
4.3.10.0000.0276.28
4.3.00.0070.0236.11

preferences:
137.99 ms | 1394 KiB | 7 Q