3v4l.org

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

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.10.0040.00816.23
7.3.00.0110.00916.25
7.2.130.0200.00716.72
7.2.120.0040.01116.83
7.2.110.0150.00816.84
7.2.100.0150.00316.58
7.2.90.0150.00616.81
7.2.80.0100.01016.94
7.2.70.0130.00716.78
7.2.60.0100.00516.79
7.2.50.0030.01216.42
7.2.40.0070.01116.73
7.2.30.0030.01016.54
7.2.20.0110.00416.66
7.2.10.0070.01116.69
7.2.00.0090.00916.97
7.1.250.0130.00915.81
7.1.70.0050.00517.21
7.1.60.0090.01219.61
7.1.50.0040.01716.64
7.1.00.0000.08022.33
7.0.200.0000.01016.81
7.0.140.0000.07022.01
7.0.60.0070.03719.95
7.0.50.0070.08717.66
7.0.40.0030.06720.05
7.0.30.0330.08320.09
7.0.20.0330.05720.09
7.0.10.0070.08020.02
7.0.00.0130.06720.13
5.6.280.0030.07320.86
5.6.210.0200.07720.56
5.6.200.0030.07318.16
5.6.190.0100.05320.45
5.6.180.0230.07020.39
5.6.170.0200.08020.50
5.6.160.0030.05720.54
5.6.150.0000.04018.12
5.6.140.0000.09318.11
5.6.130.0030.06318.18
5.6.120.0100.08020.87
5.6.110.0070.08321.03
5.6.100.0100.07720.86
5.6.90.0130.07720.99
5.6.80.0170.07320.52
5.5.350.0170.08720.46
5.5.340.0070.06317.93
5.5.330.0030.05020.40
5.5.320.0330.05320.13
5.5.310.0300.07320.20
5.5.300.0170.07717.91
5.5.290.0030.05017.89
5.5.280.0030.04020.63
5.5.270.0170.07720.75
5.5.260.0130.07720.83
5.5.250.0070.03720.70
5.5.240.0130.07720.14
5.4.450.0200.04319.53
5.4.440.0530.04019.43
5.4.430.0430.04019.48
5.4.420.0470.03719.45
5.4.410.1100.02319.45
5.4.400.0400.04018.81
5.4.390.0070.04319.25
5.4.380.0270.05718.71
5.4.370.0470.06018.55
5.4.360.0630.05318.56
5.4.350.0470.05018.77
5.4.340.0470.04718.48
5.4.320.0040.03812.46
5.4.310.0060.03812.45
5.4.300.0080.03512.46
5.4.290.0050.03912.45
5.4.280.0080.03912.35
5.4.270.0050.03812.35
5.4.260.0040.04212.35
5.4.250.0060.04412.35
5.4.240.0050.03612.35
5.4.230.0090.04712.34
5.4.220.0090.04712.34
5.4.210.0070.04412.34
5.4.200.0050.03812.34
5.4.190.0060.04212.34
5.4.180.0050.03512.34
5.4.170.0090.04112.35
5.4.160.0060.04212.35
5.4.150.0070.03512.34
5.4.140.0100.03912.02
5.4.130.0070.03912.01
5.4.120.0060.03511.97
5.4.110.0050.03611.97
5.4.100.0100.03211.97
5.4.90.0080.03511.97
5.4.80.0030.04111.97
5.4.70.0100.03211.96
5.4.60.0060.03511.96
5.4.50.0060.03911.96
5.4.40.0070.03311.95
5.4.30.0070.03411.95
5.4.20.0120.04011.95
5.4.10.0060.03511.95
5.4.00.0050.03611.45
5.3.290.0060.03912.80
5.3.280.0060.03812.71
5.3.270.0080.04712.72
5.3.260.0070.03912.72
5.3.250.0070.03912.72
5.3.240.0060.03912.72
5.3.230.0040.04412.71
5.3.220.0070.03712.68
5.3.210.0040.04612.68
5.3.200.0070.04112.68
5.3.190.0080.03812.67
5.3.180.0040.03912.67
5.3.170.0100.03512.67
5.3.160.0090.03812.67
5.3.150.0070.04112.67
5.3.140.0070.04012.66
5.3.130.0150.03212.66
5.3.120.0080.03712.66
5.3.110.0050.04012.66
5.3.100.0050.03912.12
5.3.90.0070.03712.08
5.3.80.0070.03612.07
5.3.70.0060.03812.07
5.3.60.0060.03612.06
5.3.50.0080.03512.00
5.3.40.0070.03712.00
5.3.30.0040.03711.95
5.3.20.0040.03811.72
5.3.10.0100.03211.70
5.3.00.0060.03611.68
5.2.170.0060.0309.18
5.2.160.0070.0279.18
5.2.150.0070.0299.18
5.2.140.0080.0299.18
5.2.130.0040.0309.14
5.2.120.0070.0279.14
5.2.110.0010.0339.14
5.2.100.0050.0289.14
5.2.90.0090.0259.14
5.2.80.0060.0309.14
5.2.70.0110.0389.14
5.2.60.0060.0299.09
5.2.50.0050.0339.06
5.2.40.0070.0279.04
5.2.30.0070.0319.02
5.2.20.0070.0289.00
5.2.10.0070.0288.93
5.2.00.0050.0318.78
5.1.60.0070.0228.06
5.1.50.0040.0268.06
5.1.40.0070.0228.04
5.1.30.0050.0258.40
5.1.20.0050.0358.42
5.1.10.0070.0338.14
5.1.00.0060.0358.14
5.0.50.0050.0256.62
5.0.40.0050.0196.48
5.0.30.0030.0326.29
5.0.20.0040.0206.27
5.0.10.0010.0226.24
5.0.00.0010.0346.24
4.4.90.0060.0144.77
4.4.80.0030.0164.75
4.4.70.0020.0174.76
4.4.60.0050.0134.76
4.4.50.0010.0174.77
4.4.40.0010.0274.71
4.4.30.0010.0174.76
4.4.20.0040.0144.85
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0030.0184.66
4.3.100.0040.0204.66
4.3.90.0020.0154.63
4.3.80.0030.0244.58
4.3.70.0010.0174.63
4.3.60.0050.0134.63
4.3.50.0020.0164.63
4.3.40.0040.0234.54
4.3.30.0010.0173.30
4.3.20.0020.0163.27
4.3.10.0000.0183.24
4.3.00.0000.01713.95

preferences:
36.47 ms | 401 KiB | 5 Q