3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (is_numeric($_GET['w'])) { echo "Whatever: {$_GET['w']}<br>"; } else{ echo 'The string isn't numeric.'; } ?>

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.220.0070.04312.36
5.4.210.0100.04112.36
5.4.200.0090.04712.36
5.4.190.0130.04512.36
5.4.180.0120.04312.36
5.4.170.0110.04512.37
5.4.160.0160.03912.36
5.4.150.0130.04212.36
5.4.140.0120.04112.05
5.4.130.0130.04312.03
5.4.120.0100.04311.99
5.4.110.0100.04011.99
5.4.100.0140.04211.99
5.4.90.0140.03811.99
5.4.80.0110.04311.99
5.4.70.0090.04111.98
5.4.60.0100.04211.98
5.4.50.0100.04511.98
5.4.40.0130.04311.97
5.4.30.0100.04711.97
5.4.20.0110.03911.96
5.4.10.0110.04111.97
5.4.00.0090.04011.46
5.3.270.0100.04512.72
5.3.260.0130.04112.72
5.3.250.0100.04212.72
5.3.240.0120.04312.72
5.3.230.0110.04212.71
5.3.220.0110.04312.68
5.3.210.0130.04012.68
5.3.200.0130.04112.68
5.3.190.0090.04512.68
5.3.180.0100.04112.67
5.3.170.0130.03912.67
5.3.160.0120.04012.67
5.3.150.0110.04112.67
5.3.140.0090.04112.66
5.3.130.0100.04212.66
5.3.120.0140.03912.66
5.3.110.0120.04112.66
5.3.100.0150.03912.12
5.3.90.0150.03912.08
5.3.80.0150.05812.08
5.3.70.0090.04712.07
5.3.60.0140.03912.06
5.3.50.0120.04112.00
5.3.40.0130.03812.00
5.3.30.0100.04111.94
5.3.20.0140.03611.71
5.3.10.0070.04311.66
5.3.00.0150.03811.65
5.2.170.0110.0319.15
5.2.160.0070.0349.15
5.2.150.0100.0339.15
5.2.140.0110.0329.15
5.2.130.0090.0359.11
5.2.120.0080.0329.11
5.2.110.0080.0349.11
5.2.100.0130.0279.11
5.2.90.0050.0359.11
5.2.80.0070.0359.11
5.2.70.0090.0349.10
5.2.60.0090.0329.06
5.2.50.0070.0349.03
5.2.40.0090.0349.00
5.2.30.0100.0318.98
5.2.20.0100.0318.97
5.2.10.0070.0348.89
5.2.00.0090.0318.75
5.1.60.0090.0258.04
5.1.50.0070.0308.03
5.1.40.0090.0268.02
5.1.30.0090.0338.36
5.1.20.0070.0328.39
5.1.10.0120.0268.12
5.1.00.0100.0308.11
5.0.50.0090.0246.59
5.0.40.0070.0216.45
5.0.30.0080.0356.27
5.0.20.0090.0256.24
5.0.10.0080.0216.21
5.0.00.0110.0456.20
4.4.90.0050.0194.78
4.4.80.0060.0164.76
4.4.70.0050.0194.76
4.4.60.0050.0184.75
4.4.50.0070.0154.77
4.4.40.0040.0284.70
4.4.30.0050.0194.76
4.4.20.0090.0154.85
4.4.10.0060.0164.85
4.4.00.0070.0274.76
4.3.110.0040.0184.67
4.3.100.0070.0164.66
4.3.90.0060.0164.63
4.3.80.0050.0254.58
4.3.70.0080.0144.63
4.3.60.0030.0184.63
4.3.50.0050.0184.63
4.3.40.0040.0274.54
4.3.30.0060.0143.29
4.3.20.0040.0193.26
4.3.10.0050.0153.22
4.3.00.0230.01314.47

preferences:
143.37 ms | 1394 KiB | 7 Q