3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mykey = "\x00" . uniqid(); $var[$mykey] = TRUE; foreach($var as $key => $val) { if ($key === $mykey) { echo 'You got it right'; } else { echo 'You got it wrong'; } }

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)
7.3.120.0060.01314.73
7.3.110.0130.00614.65
7.3.100.0070.00714.43
7.3.90.0030.01014.92
7.3.80.0060.00614.64
7.3.70.0130.00314.70
7.3.60.0060.00614.90
7.3.50.0080.00014.97
7.3.40.0040.01114.48
7.3.30.0030.00614.77
7.3.20.0040.00416.62
7.3.10.0100.00316.77
7.3.00.0050.00516.39
7.2.240.0030.01715.20
7.2.230.0000.01414.76
7.2.220.0070.01014.96
7.2.210.0030.00714.87
7.2.200.0090.00615.01
7.2.190.0060.00614.78
7.2.180.0060.00614.71
7.2.170.0040.01114.98
7.2.160.0070.00715.08
7.2.150.0090.00316.93
7.2.140.0060.01016.75
7.2.130.0090.00016.84
7.2.120.0090.00916.88
7.2.110.0060.00916.83
7.2.100.0100.00316.93
7.2.90.0030.00716.85
7.2.80.0050.00516.98
7.2.70.0060.00616.69
7.2.60.0070.00716.86
7.2.50.0100.00616.86
7.2.40.0070.00716.90
7.2.30.0030.00716.98
7.2.20.0070.00716.71
7.2.10.0040.01216.79
7.2.00.0030.00916.88
7.1.330.0070.01015.97
7.1.320.0040.01415.74
7.1.310.0120.00415.67
7.1.300.0100.00315.40
7.1.290.0070.00716.02
7.1.280.0040.01115.88
7.1.270.0030.00615.72
7.1.260.0030.00615.94
7.1.250.0060.00615.88
7.1.70.0060.01217.12
7.1.60.0100.01019.61
7.1.50.0070.01317.00
7.1.00.0070.07322.31
7.0.200.0030.00616.82
7.0.140.0070.07022.07
7.0.60.0030.08319.94
7.0.50.0070.05017.86
7.0.40.0170.05720.14
7.0.30.0270.05020.04
7.0.20.0200.05720.17
7.0.10.0170.04020.20
7.0.00.0070.05020.01
5.6.280.0000.07320.86
5.6.210.0030.06720.46
5.6.200.0100.04718.21
5.6.190.0230.07020.56
5.6.180.0300.07020.49
5.6.170.0230.06320.55
5.6.160.0100.08720.48
5.6.150.0070.03718.22
5.6.140.0070.08018.07
5.6.130.0100.06318.09
5.6.120.0030.04320.89
5.6.110.0100.08721.08
5.6.100.0070.06320.97
5.6.90.0130.07720.88
5.6.80.0270.06020.53
5.6.70.0300.06720.43
5.5.350.0070.07720.47
5.5.340.0100.03018.01
5.5.330.0030.07020.23
5.5.320.0230.03720.30
5.5.310.0270.03720.17
5.5.300.0000.08717.95
5.5.290.0070.07317.96
5.5.280.0070.05020.88
5.5.270.0100.05320.87
5.5.260.0170.08020.89
5.5.250.0100.07720.68
5.5.240.0000.04720.25
5.4.450.0400.03319.24
5.4.440.0430.04019.43
5.4.430.0300.04019.43
5.4.420.0270.04319.40
5.4.410.0230.03319.11
5.4.400.0230.04019.14
5.4.390.0130.05319.13
5.4.380.0370.04718.66
5.4.370.0230.06018.71
5.4.360.0200.05318.60
5.4.350.0270.05318.50
5.4.340.0330.05318.71
5.4.320.0030.03912.46
5.4.310.0050.03912.45
5.4.300.0050.03712.45
5.4.290.0070.03712.45
5.4.280.0060.03712.35
5.4.270.0070.03512.35
5.4.260.0060.03712.35
5.4.250.0060.03712.35
5.4.240.0100.03112.35
5.4.230.0060.04112.34
5.4.220.0050.03812.34
5.4.210.0100.03212.34
5.4.200.0070.03512.34
5.4.190.0050.03612.34
5.4.180.0080.03312.34
5.4.170.0070.03412.35
5.4.160.0060.03612.35
5.4.150.0030.03912.34
5.4.140.0060.03812.03
5.4.130.0060.03712.01
5.4.120.0060.04111.98
5.4.110.0060.05011.96
5.4.100.0090.04711.97
5.4.90.0040.04311.97
5.4.80.0060.04011.97
5.4.70.0070.03311.96
5.4.60.0060.03511.96
5.4.50.0050.03611.96
5.4.40.0080.03211.95
5.4.30.0020.03911.95
5.4.20.0070.03311.95
5.4.10.0060.03311.95
5.4.00.0050.03511.44
5.3.290.0070.03812.80
5.3.280.0060.03812.71
5.3.270.0090.03612.72
5.3.260.0120.03312.71
5.3.250.0040.04012.71
5.3.240.0110.04912.72
5.3.230.0060.04312.71
5.3.220.0050.03812.68
5.3.210.0070.03912.68
5.3.200.0060.05512.68
5.3.190.0060.05412.68
5.3.180.0080.05312.67
5.3.170.0100.05212.67
5.3.160.0130.04812.67
5.3.150.0100.05312.68
5.3.140.0100.05312.66
5.3.130.0110.04912.66
5.3.120.0090.05212.66
5.3.110.0090.05212.66
5.3.100.0100.04812.12
5.3.90.0090.04712.09
5.3.80.0140.04212.07
5.3.70.0120.04412.08
5.3.60.0080.04812.06
5.3.50.0100.03612.00
5.3.40.0060.05112.00
5.3.30.0100.03311.95
5.3.20.0070.03511.72
5.3.10.0070.03611.70
5.3.00.0080.03311.68
5.2.170.0070.0329.18
5.2.160.0040.0329.19
5.2.150.0040.0369.18
5.2.140.0020.0339.18
5.2.130.0030.0309.14
5.2.120.0090.0249.14
5.2.110.0050.0299.14
5.2.100.0070.0269.14
5.2.90.0070.0269.14
5.2.80.0060.0299.14
5.2.70.0080.0279.14
5.2.60.0030.0319.09
5.2.50.0070.0279.06
5.2.40.0050.0289.04
5.2.30.0070.0279.02
5.2.20.0060.0289.00
5.2.10.0040.0288.92
5.2.00.0030.0308.78
5.1.60.0030.0258.06
5.1.50.0060.0338.06
5.1.40.0100.0308.05
5.1.30.0060.0248.39
5.1.20.0060.0368.41
5.1.10.0030.0278.14
5.1.00.0050.0368.14
5.0.50.0020.0226.62
5.0.40.0030.0196.48
5.0.30.0030.0316.29
5.0.20.0020.0206.26
5.0.10.0060.0176.23
5.0.00.0060.0276.23
4.4.90.0020.0164.78
4.4.80.0020.0164.76
4.4.70.0030.0194.76
4.4.60.0030.0294.75
4.4.50.0020.0204.77
4.4.40.0020.0264.71
4.4.30.0070.0194.75
4.4.20.0040.0244.85
4.4.10.0060.0204.85
4.4.00.0030.0344.76
4.3.110.0060.0174.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0030.0244.59
4.3.70.0020.0154.63
4.3.60.0010.0164.63
4.3.50.0020.0154.63
4.3.40.0010.0254.54
4.3.30.0010.0163.29
4.3.20.0050.0203.27
4.3.10.0020.0163.23
4.3.00.0070.01313.95

preferences:
34.43 ms | 400 KiB | 5 Q