3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $x = array('42' => array('42 => 1, '43' => 3)); $x[42][42] =& $x; echo count($x);

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.260.0130.05019.08
5.4.250.0070.05318.95
5.4.240.0100.04718.73
5.4.230.0030.05319.06
5.4.220.0130.04718.96
5.4.210.0070.06719.07
5.4.200.0030.05718.76
5.4.190.0130.04718.71
5.4.180.0130.04318.98
5.4.170.0130.05018.90
5.4.160.0100.05318.95
5.4.150.0000.07018.63
5.4.140.0130.05716.36
5.4.130.0170.04716.38
5.4.120.0030.05316.41
5.4.110.0170.04316.34
5.4.100.0130.04016.32
5.4.90.0070.04716.48
5.4.80.0070.04716.44
5.4.70.0030.05016.31
5.4.60.0100.04716.35
5.4.50.0130.06716.35
5.4.40.0030.05016.50
5.4.30.0100.04316.27
5.4.20.0070.05316.49
5.4.10.0030.05316.42
5.4.00.0030.05715.82
5.3.280.0030.05314.43
5.3.270.0030.05714.61
5.3.260.0070.08014.52
5.3.250.0070.05714.63
5.3.240.0170.05014.62
5.3.230.0170.04014.37
5.3.220.0070.07314.59
5.3.210.0030.05314.27
5.3.200.0070.07714.60
5.3.190.0070.05014.41
5.3.180.0070.05014.33
5.3.170.0100.06714.42
5.3.160.0070.05014.45
5.3.150.0130.05014.58
5.3.140.0130.04314.57
5.3.130.0070.07014.56
5.3.120.0130.05014.60
5.3.110.0070.05314.57
5.3.100.0100.04714.19
5.3.90.0030.05013.79
5.3.80.0100.05713.91
5.3.70.0030.05314.04
5.3.60.0030.05013.77
5.3.50.0000.05713.98
5.3.40.0030.05013.94
5.3.30.0030.05013.76
5.3.20.0030.04713.56
5.3.10.0100.05013.59
5.3.00.0100.04713.36
5.2.170.0070.04011.16
5.2.160.0070.03711.09
5.2.150.0100.03311.25
5.2.140.0000.04311.22
5.2.130.0070.04711.21
5.2.120.0000.04310.86
5.2.110.0100.03310.85
5.2.100.0070.04711.11
5.2.90.0070.03711.03
5.2.80.0030.04311.24
5.2.70.0030.04311.01
5.2.60.0000.05311.07
5.2.50.0030.04710.86
5.2.40.0070.03310.91
5.2.30.0000.05011.01
5.2.20.0030.05310.95
5.2.10.0070.03710.94
5.2.00.0070.03710.55
5.1.60.0070.0309.90
5.1.50.0030.0339.95
5.1.40.0070.0409.91
5.1.30.0100.03010.41
5.1.20.0030.03710.43
5.1.10.0100.03010.13
5.1.00.0030.0379.95
5.0.50.0000.0308.60
5.0.40.0000.0338.29
5.0.30.0070.0377.99
5.0.20.0030.0278.18
5.0.10.0030.0278.17
5.0.00.0100.0338.19
4.4.90.0100.0135.79
4.4.80.0000.0235.78
4.4.70.0030.0205.77
4.4.60.0030.0205.77
4.4.50.0030.0205.79
4.4.40.0070.0275.78
4.4.30.0000.0235.83
4.4.20.0000.0235.81
4.4.10.0000.0235.83
4.4.00.0100.0275.81
4.3.110.0000.0375.79
4.3.100.0030.0205.79
4.3.90.0030.0205.79
4.3.80.0070.0305.79
4.3.70.0030.0205.79
4.3.60.0070.0175.80
4.3.50.0070.0275.79
4.3.40.0100.0275.79
4.3.30.0030.0205.79
4.3.20.0030.0205.79
4.3.10.0030.0235.79
4.3.00.0070.0177.46

preferences:
141.61 ms | 1394 KiB | 7 Q