3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_key = "\x00" . uniqid(); $var[$my_key] = TRUE; foreach($var as $key => $val) { if ($key === $my_key) { 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.4.00.0100.00714.64
7.3.120.0070.01114.75
7.3.110.0040.01514.71
7.3.100.0030.01314.69
7.3.90.0030.01014.58
7.3.80.0000.00915.04
7.3.70.0140.00014.77
7.3.60.0070.00714.88
7.3.50.0170.00014.75
7.3.40.0120.00315.00
7.3.30.0030.00614.98
7.3.20.0000.00916.21
7.3.10.0060.00816.72
7.3.00.0100.00616.56
7.2.250.0070.01315.24
7.2.240.0100.01014.75
7.2.230.0070.00715.21
7.2.220.0030.01014.95
7.2.210.0030.01014.79
7.2.200.0120.00315.18
7.2.190.0030.00615.13
7.2.180.0070.00714.78
7.2.170.0060.00915.07
7.2.130.0060.00616.64
7.2.120.0040.00416.64
7.2.110.0070.00416.70
7.2.100.0070.01016.74
7.2.90.0060.00316.82
7.2.80.0120.00016.96
7.2.70.0060.00617.06
7.2.60.0100.00016.83
7.2.50.0030.01016.86
7.2.40.0030.00617.11
7.2.30.0030.00816.67
7.2.20.0090.00416.85
7.2.10.0050.00516.73
7.2.00.0040.00818.03
7.1.330.0040.01115.63
7.1.320.0000.01015.84
7.1.310.0040.01115.62
7.1.300.0070.00715.82
7.1.290.0070.00715.98
7.1.280.0060.00915.90
7.1.270.0030.01015.36
7.1.260.0000.01515.68
7.1.250.0030.00915.88
7.1.100.0060.00618.44
7.1.70.0030.00517.11
7.1.60.0090.00619.61
7.1.50.0070.01416.68
7.1.00.0000.08022.46
7.0.200.0000.00816.97
7.0.140.0030.07322.13
7.0.60.0070.07019.85
7.0.50.0070.06017.80
7.0.40.0130.07319.96
7.0.30.0200.05320.02
7.0.20.0170.04320.16
7.0.10.0070.04720.30
7.0.00.0070.08720.16
5.6.280.0030.07021.04
5.6.210.0070.08320.50
5.6.200.0130.07718.19
5.6.190.0070.04320.56
5.6.180.0230.05320.41
5.6.170.0200.06020.38
5.6.160.0130.07320.51
5.6.150.0100.08018.17
5.6.140.0100.07718.08
5.6.130.0100.07018.20
5.6.120.0000.07720.97
5.6.110.0070.03721.04
5.6.100.0170.06020.97
5.6.90.0100.06021.01
5.6.80.0030.08720.48
5.6.70.3670.04020.52
5.5.350.0200.08720.46
5.5.340.0030.04017.98
5.5.330.0100.04020.06
5.5.320.0430.07020.24
5.5.310.0270.03020.34
5.5.300.0100.08017.88
5.5.290.0000.08718.05
5.5.280.0100.06020.80
5.5.270.0030.04720.67
5.5.260.0030.04320.79
5.5.250.0030.06020.59
5.5.240.4200.03720.14
5.4.450.0270.05019.17
5.4.440.0630.05019.58
5.4.430.0270.04019.41
5.4.420.0270.04319.25
5.4.410.0570.03719.33
5.4.400.0370.03718.81
5.4.390.0330.04719.07
5.4.380.0530.07018.56
5.4.370.0270.05718.71
5.4.360.0230.05718.61
5.4.350.0270.05718.55
5.4.340.0400.05718.63
5.4.320.0050.03812.45
5.4.310.0070.03712.45
5.4.300.0060.03512.46
5.4.290.0080.03712.45
5.4.280.0100.03812.35
5.4.270.0120.04812.35
5.4.260.0070.03812.35
5.4.250.0050.04012.35
5.4.240.0080.03412.35
5.4.230.0060.04312.34
5.4.220.0110.04612.34
5.4.210.0060.03612.34
5.4.200.0070.03712.34
5.4.190.0080.03412.34
5.4.180.0100.04112.34
5.4.170.0060.05312.35
5.4.160.0070.03412.34
5.4.150.0070.05012.34
5.4.140.0070.04112.03
5.4.130.0060.03612.01
5.4.120.0070.03411.97
5.4.110.0080.03711.97
5.4.100.0060.04111.97
5.4.90.0090.03411.97
5.4.80.0060.03711.97
5.4.70.0040.03611.96
5.4.60.0100.03111.96
5.4.50.0040.03711.96
5.4.40.0030.03811.95
5.4.30.0070.03511.95
5.4.20.0050.03611.95
5.4.10.0060.03511.95
5.4.00.0060.03511.44
5.3.290.0090.04012.80
5.3.280.0070.03712.71
5.3.270.0070.04212.72
5.3.260.0060.04012.72
5.3.250.0080.04612.72
5.3.240.0090.04412.71
5.3.230.0100.03712.71
5.3.220.0060.03812.68
5.3.210.0110.03512.68
5.3.200.0090.03512.68
5.3.190.0090.03612.68
5.3.180.0040.03812.67
5.3.170.0070.03812.66
5.3.160.0080.03512.67
5.3.150.0060.03612.67
5.3.140.0080.03412.66
5.3.130.0070.04212.66
5.3.120.0060.03812.66
5.3.110.0080.03712.66
5.3.100.0060.03712.12
5.3.90.0060.03712.08
5.3.80.0050.03712.08
5.3.70.0090.03312.07
5.3.60.0050.03712.06
5.3.50.0070.03412.00
5.3.40.0070.03612.00
5.3.30.0050.03811.95
5.3.20.0070.03411.72
5.3.10.0020.03711.69
5.3.00.0110.04111.68
5.2.170.0050.0399.18
5.2.160.0060.0289.18
5.2.150.0060.0299.18
5.2.140.0040.0329.18
5.2.130.0040.0309.14
5.2.120.0070.0279.14
5.2.110.0040.0319.15
5.2.100.0050.0299.14
5.2.90.0060.0299.14
5.2.80.0080.0309.14
5.2.70.0060.0319.14
5.2.60.0050.0309.09
5.2.50.0060.0299.06
5.2.40.0060.0279.04
5.2.30.0040.0309.01
5.2.20.0060.0289.00
5.2.10.0070.0268.92
5.2.00.0050.0298.78
5.1.60.0060.0228.06
5.1.50.0080.0228.06
5.1.40.0060.0228.05
5.1.30.0050.0258.39
5.1.20.0050.0268.41
5.1.10.0030.0278.14
5.1.00.0050.0268.13
5.0.50.0040.0216.62
5.0.40.0060.0196.48
5.0.30.0040.0426.29
5.0.20.0040.0276.27
5.0.10.0050.0196.24
5.0.00.0050.0336.23
4.4.90.0020.0164.77
4.4.80.0010.0164.75
4.4.70.0030.0154.75
4.4.60.0020.0164.76
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0050.0134.76
4.4.20.0020.0174.85
4.4.10.0030.0164.85
4.4.00.0020.0264.75
4.3.110.0040.0144.67
4.3.100.0030.0154.67
4.3.90.0010.0164.63
4.3.80.0030.0254.58
4.3.70.0050.0144.63
4.3.60.0030.0154.63
4.3.50.0040.0174.63
4.3.40.0030.0334.54
4.3.30.0000.0183.29
4.3.20.0030.0213.27
4.3.10.0020.0183.23
4.3.00.0070.01713.95

preferences:
33.27 ms | 400 KiB | 5 Q