3v4l.org

run code in 300+ PHP versions simultaneously
<?php $country_code = 'US'; $cn_array = array('COUNTRY_NAME' => array( 'AF' => 'AFGHANISTAN', 'US' => 'UNITED STATES', ) ); $country_name = $cn_array[0],[$country_code];

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.6.80.0100.07720.40
5.5.240.0100.07020.12
5.4.400.0030.06318.81
5.4.390.0100.05718.76
5.4.380.0170.05018.84
5.4.370.0170.04718.78
5.4.360.0170.04718.80
5.4.350.0170.05018.71
5.4.340.0130.05318.79
5.4.320.0170.05318.58
5.4.310.0170.04718.49
5.4.300.0200.07018.52
5.4.290.0200.04718.73
5.4.280.0170.05318.74
5.4.270.0300.05718.52
5.4.260.0230.06318.79
5.4.250.0300.06018.55
5.4.240.0200.07318.83
5.4.230.0200.07018.75
5.4.220.0270.05318.60
5.4.210.0170.05018.73
5.4.200.0100.05016.69
5.4.190.0100.05718.67
5.4.180.0170.05018.68
5.4.170.0130.06018.79
5.4.160.0200.04718.77
5.4.150.0200.05018.60
5.4.140.0070.05716.32
5.4.130.0200.04016.44
5.4.120.0200.04016.43
5.4.110.0100.05016.17
5.4.100.0170.04716.27
5.4.90.0100.05316.25
5.4.80.0200.04716.42
5.4.70.0200.04716.26
5.4.60.0270.04016.22
5.4.50.0030.06016.15
5.4.40.0170.05316.18
5.4.30.0200.04016.32
5.4.20.0130.05016.24
5.4.10.0130.04716.27
5.4.00.0070.05315.72
5.3.290.0230.04714.56
5.3.280.0070.05714.64
5.3.270.0070.06314.61
5.3.260.0270.04314.64
5.3.250.0100.05314.60
5.3.240.0130.05014.63
5.3.230.0170.04714.56
5.3.220.0230.04714.64
5.3.210.0070.06014.48
5.3.200.0100.05014.68
5.3.190.0200.04314.50
5.3.180.0130.05014.50
5.3.170.0130.05014.57
5.3.160.0030.06714.56
5.3.150.0200.04714.47
5.3.140.0100.06014.47
5.3.130.0100.05714.54
5.3.120.0100.05314.54
5.3.110.0200.07014.46
5.3.100.0100.05714.09
5.3.90.0170.06714.12
5.3.80.0170.06314.11
5.3.70.0100.07013.97
5.3.60.0170.06713.92
5.3.50.0130.05313.84
5.3.40.0130.05013.88
5.3.30.0170.04313.89
5.3.20.0130.05013.66
5.3.10.0130.05013.75
5.3.00.0170.05013.54
5.2.170.0070.06311.18
5.2.160.0100.04711.28
5.2.150.0130.05311.09
5.2.140.0100.04311.15
5.2.130.0070.06011.07
5.2.120.0100.05711.14
5.2.110.0200.04711.25
5.2.100.0170.03311.09
5.2.90.0100.04011.05
5.2.80.0100.04011.06
5.2.70.0170.03311.05
5.2.60.0000.05311.00
5.2.50.0130.04311.15
5.2.40.0030.04710.95
5.2.30.0100.04010.94
5.2.20.0130.03711.00
5.2.10.0070.04310.87
5.2.00.0070.04010.77
5.1.60.0100.0339.96
5.1.50.0070.03710.04
5.1.40.0070.03710.00
5.1.30.0230.02010.32
5.1.20.0100.03710.45
5.1.10.0030.04310.08
5.1.00.0100.03310.18
5.0.50.0000.0338.58
5.0.40.0030.0278.39
5.0.30.0030.0478.34
5.0.20.0030.0308.27
5.0.10.0130.0208.15
5.0.00.0030.0438.34
4.4.90.0030.0235.89
4.4.80.0030.0205.93
4.4.70.0000.0275.88
4.4.60.0030.0235.91
4.4.50.0100.0175.95
4.4.40.0000.0405.87
4.4.30.0070.0175.93
4.4.20.0030.0235.95
4.4.10.0030.0235.98
4.4.00.0030.0335.89
4.3.110.0000.0275.83
4.3.100.0070.0205.80
4.3.90.0030.0235.80
4.3.80.0030.0335.87
4.3.70.0070.0205.79
4.3.60.0030.0235.87
4.3.50.0100.0205.89
4.3.40.0030.0335.88
4.3.30.0100.0174.66
4.3.20.0000.0274.51
4.3.10.0000.0234.52
4.3.00.0130.0177.11

preferences:
141.2 ms | 1394 KiB | 7 Q