3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($x = 1; $x <= 10; $x++) { $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'; } } 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)
5.4.320.0150.03612.50
5.4.310.0100.03712.50
5.4.300.0050.04012.50
5.4.290.0130.04612.50
5.4.280.0120.03212.39
5.4.270.0060.05212.39
5.4.260.0050.04612.39
5.4.250.0090.04512.39
5.4.240.0060.03712.39
5.4.230.0070.03612.38
5.4.220.0120.04812.38
5.4.210.0110.03412.38
5.4.200.0060.03912.39
5.4.190.0070.03512.38
5.4.180.0090.03312.38
5.4.170.0100.03312.39
5.4.160.0100.03912.38
5.4.150.0060.04312.38
5.4.140.0070.03612.07
5.4.130.0050.03612.05
5.4.120.0120.03012.02
5.4.110.0030.03912.02
5.4.100.0060.03412.02
5.4.90.0070.03712.02
5.4.80.0090.03612.02
5.4.70.0040.03712.01
5.4.60.0080.03712.02
5.4.50.0060.03612.01
5.4.40.0050.03512.00
5.4.30.0130.03812.00
5.4.20.0080.03911.99
5.4.10.0070.04112.00
5.4.00.0080.04111.48
5.3.290.0050.04012.80
5.3.280.0120.04412.71
5.3.270.0090.04312.72
5.3.260.0080.04312.72
5.3.250.0070.04612.72
5.3.240.0110.04812.72
5.3.230.0100.04812.70
5.3.220.0130.04812.68
5.3.210.0110.04912.68
5.3.200.0060.04212.68
5.3.190.0080.05012.68
5.3.180.0060.05112.67
5.3.170.0090.04012.67
5.3.160.0070.03912.68
5.3.150.0080.05012.67
5.3.140.0070.04812.66
5.3.130.0070.04012.66
5.3.120.0120.05012.66
5.3.110.0150.04612.66
5.3.100.0090.04512.12
5.3.90.0080.03512.08
5.3.80.0110.03912.07
5.3.70.0110.03812.08
5.3.60.0060.04112.06
5.3.50.0130.03612.00
5.3.40.0070.04012.00
5.3.30.0080.03711.95
5.3.20.0110.03411.73
5.3.10.0080.03411.70
5.3.00.0070.04411.68
5.2.170.0040.0339.18
5.2.160.0100.0289.19
5.2.150.0060.0349.19
5.2.140.0090.0349.18
5.2.130.0100.0279.14
5.2.120.0050.0299.14
5.2.110.0080.0299.15
5.2.100.0060.0289.15
5.2.90.0090.0419.14
5.2.80.0060.0409.14
5.2.70.0060.0419.14
5.2.60.0060.0409.09
5.2.50.0180.0379.06
5.2.40.0050.0309.04
5.2.30.0030.0329.02
5.2.20.0090.0329.01
5.2.10.0090.0328.92
5.2.00.0050.0338.79
5.1.60.0070.0338.07
5.1.50.0080.0218.06
5.1.40.0050.0278.05
5.1.30.0070.0248.40
5.1.20.0060.0268.42
5.1.10.0110.0228.14
5.1.00.0030.0278.15
5.0.50.0050.0216.63
5.0.40.0060.0176.49
5.0.30.0030.0346.29
5.0.20.0040.0186.27
5.0.10.0030.0206.24
5.0.00.0080.0296.23
4.4.90.0040.0164.77
4.4.80.0050.0154.75
4.4.70.0060.0144.75
4.4.60.0060.0134.76
4.4.50.0020.0174.77
4.4.40.0030.0264.71
4.4.30.0030.0164.76
4.4.20.0040.0154.84
4.4.10.0050.0144.85
4.4.00.0010.0264.76
4.3.110.0030.0154.66
4.3.100.0070.0124.66
4.3.90.0040.0144.63
4.3.80.0020.0274.59
4.3.70.0010.0164.63
4.3.60.0050.0144.63
4.3.50.0040.0184.63
4.3.40.0030.0244.54
4.3.30.0030.0183.29
4.3.20.0020.0193.26
4.3.10.0040.0163.23
4.3.00.0070.01313.95

preferences:
142.31 ms | 1394 KiB | 7 Q