3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i=1; $i<=6; $i++) { $urlGray = array(); $urlGray[$i] = "foo"; echo($urlGray[1]); ?>

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.0070.05318.70
5.4.260.0100.04718.94
5.4.250.0070.05318.61
5.4.240.0170.04018.76
5.4.230.0070.05318.73
5.4.220.0070.05318.79
5.4.210.0070.05018.95
5.4.200.0130.04718.79
5.4.190.0070.06018.75
5.4.180.0170.04718.79
5.4.170.0070.05018.76
5.4.160.0070.05318.76
5.4.150.0070.05318.64
5.4.140.0070.05016.32
5.4.130.0170.06016.40
5.4.120.0170.04016.25
5.4.110.0100.05016.14
5.4.100.0070.04716.50
5.4.90.0130.04316.38
5.4.80.0100.04716.14
5.4.70.0070.05316.49
5.4.60.0100.04316.34
5.4.50.0100.04716.11
5.4.40.0130.04016.17
5.4.30.0130.04316.38
5.4.20.0100.04316.41
5.4.10.0070.05016.13
5.4.00.0070.05015.93
5.3.280.0070.06014.64
5.3.270.0070.05314.62
5.3.260.0100.05314.49
5.3.250.0000.05714.62
5.3.240.0030.05714.70
5.3.230.0170.05314.75
5.3.220.0100.05014.27
5.3.210.0100.05014.66
5.3.200.0070.05014.68
5.3.190.0170.06014.62
5.3.180.0070.06014.58
5.3.170.0070.07314.26
5.3.160.0070.05014.26
5.3.150.0000.05714.41
5.3.140.0100.04314.43
5.3.130.0070.05714.46
5.3.120.0130.04714.56
5.3.110.0200.04014.41
5.3.100.0100.05013.91
5.3.90.0070.04714.02
5.3.80.0030.05313.89
5.3.70.0070.04713.72
5.3.60.0100.04314.01
5.3.50.0000.05713.96
5.3.40.0030.05313.89
5.3.30.0100.04314.06
5.3.20.0070.05013.69
5.3.10.0130.05713.66
5.3.00.0070.06013.53
5.2.170.0100.04011.15
5.2.160.0130.05011.16
5.2.150.0070.05011.15
5.2.140.0100.05311.05
5.2.130.0100.03311.11
5.2.120.0170.04711.11
5.2.110.0100.03710.98
5.2.100.0130.03011.03
5.2.90.0070.05311.13
5.2.80.0130.03311.18
5.2.70.0030.04311.09
5.2.60.0070.04011.05
5.2.50.0030.05311.12
5.2.40.0000.04310.91
5.2.30.0070.04010.97
5.2.20.0070.04010.96
5.2.10.0100.05011.07
5.2.00.0030.04310.93
5.1.60.0100.02710.85
5.1.50.0070.03010.85
5.1.40.0070.03310.85
5.1.30.0130.04710.85
5.1.20.0100.04310.85
5.1.10.0070.03310.85
5.1.00.0030.03710.85
5.0.50.0000.03310.85
5.0.40.0070.02310.85
5.0.30.0030.04310.85
5.0.20.0030.02310.85
5.0.10.0030.04010.85
5.0.00.0030.04010.85
4.4.90.0070.02710.85
4.4.80.0070.01710.85
4.4.70.0000.02310.85
4.4.60.0030.02010.85
4.4.50.0030.02010.85
4.4.40.0070.03010.85
4.4.30.0070.01710.85
4.4.20.0030.02710.85
4.4.10.0030.02010.85
4.4.00.0000.03710.85
4.3.110.0000.02310.85
4.3.100.0030.02010.85
4.3.90.0000.03310.85
4.3.80.0070.03010.85
4.3.70.0000.02710.85
4.3.60.0000.02310.85
4.3.50.0030.02010.85
4.3.40.0070.02710.85
4.3.30.0030.02010.85
4.3.20.0100.02310.85
4.3.10.0030.02010.85
4.3.00.0000.0278.12

preferences:
146.42 ms | 1394 KiB | 7 Q