3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( "42", 1337, 0x539, 02471, '0b10100111001', 1337e0, "not numeric", array(), 9.1 ); foreach ($tests as $element) { if (is_numeric($element)) { echo "'{$element}' is numeric", PHP_EOL; } else { echo "'{$element}' is NOT numeric", PHP_EOL; } }

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)
8.3.60.0060.01516.63
8.3.50.0100.01018.08
8.3.40.0110.00418.63
8.3.30.0110.00418.79
8.3.20.0070.00021.77
8.3.10.0040.00421.76
8.3.00.0080.00021.90
8.2.180.0110.00716.63
8.2.170.0080.00822.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0060.00319.64
8.2.120.0090.00026.35
8.2.110.0060.00322.26
8.2.100.0070.00717.72
8.2.90.0050.00317.63
8.2.80.0000.00917.97
8.2.70.0040.00417.93
8.2.60.0040.00418.09
8.2.50.0000.00818.10
8.2.40.0000.00819.38
8.2.30.0080.00020.97
8.2.20.0000.00718.07
8.2.10.0050.00218.11
8.2.00.0030.00417.57
8.1.280.0200.00025.92
8.1.270.0000.00823.96
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.18
8.1.230.0080.00418.94
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00318.71
8.1.160.0000.00722.02
8.1.150.0000.00718.85
8.1.140.0070.00019.46
8.1.130.0040.00417.70
8.1.120.0040.00417.30
8.1.110.0000.00717.50
8.1.100.0040.00417.36
8.1.90.0000.00717.48
8.1.80.0040.00417.46
8.1.70.0030.00317.44
8.1.60.0000.00917.57
8.1.50.0030.00517.52
8.1.40.0060.00317.45
8.1.30.0040.00417.55
8.1.20.0020.00517.50
8.1.10.0040.00417.53
8.1.00.0040.00417.44
8.0.300.0070.00019.99
8.0.290.0040.00416.75
8.0.280.0080.00018.32
8.0.270.0030.00317.32
8.0.260.0080.00017.27
8.0.250.0030.00316.92
8.0.240.0030.00317.04
8.0.230.0040.00416.95
8.0.220.0070.00016.96
8.0.210.0040.00417.00
8.0.200.0040.00417.00
8.0.190.0020.00516.98
8.0.180.0040.00417.00
8.0.170.0000.00716.95
8.0.160.0040.00416.95
8.0.150.0040.00416.94
8.0.140.0040.00416.93
8.0.130.0000.00513.34
8.0.120.0030.00516.91
8.0.110.0000.00817.01
8.0.100.0040.00416.90
8.0.90.0050.00316.74
8.0.80.0140.00316.93
8.0.70.0040.00416.86
8.0.60.0070.00016.79
8.0.50.0080.00016.90
8.0.30.0100.00817.20
8.0.20.0080.01117.40
8.0.10.0000.00817.09
8.0.00.0140.00316.50
7.4.330.0020.00215.55
7.4.320.0060.00016.62
7.4.300.0060.00016.46
7.4.290.0040.00416.43
7.4.280.0000.00716.35
7.4.270.0040.00416.55
7.4.260.0000.00716.39
7.4.250.0000.00816.55
7.4.240.0040.00416.53
7.4.230.0040.00416.63
7.4.220.0200.01016.55
7.4.210.0120.00416.68
7.4.200.0030.00316.68
7.4.160.0080.00916.58
7.4.150.0150.00317.40
7.4.140.0140.00717.86
7.4.130.0050.01216.58
7.4.120.0090.00916.51
7.4.110.0150.00416.32
7.4.100.0000.01716.54
7.4.90.0070.01416.55
7.4.80.0100.00719.39
7.4.70.0100.00716.50
7.4.60.0000.01516.49
7.4.50.0120.00016.27
7.4.40.0090.00616.48
7.4.30.0030.01616.46
7.4.00.0030.01014.74
7.3.330.0060.00013.27
7.3.320.0000.00713.22
7.3.310.0080.00016.24
7.3.300.0000.00716.28
7.3.290.0110.00516.39
7.3.280.0100.00616.38
7.3.270.0150.00917.40
7.3.260.0070.01016.44
7.3.250.0090.00816.34
7.3.240.0120.00616.51
7.3.230.0030.01316.39
7.3.210.0040.01216.52
7.3.200.0120.00416.41
7.3.190.0190.00216.50
7.3.180.0070.01016.20
7.3.170.0070.01016.41
7.3.160.0060.01616.36
7.3.10.0110.00416.57
7.3.00.0050.00516.66
7.2.330.0070.01116.60
7.2.320.0080.00816.73
7.2.310.0110.00516.65
7.2.300.0030.01516.45
7.2.290.0060.01116.51
7.2.130.0000.01416.88
7.2.120.0070.00717.09
7.2.110.0070.00416.70
7.2.100.0160.00016.65
7.2.90.0030.00616.68
7.2.80.0070.00717.04
7.2.70.0060.00616.80
7.2.60.0040.00716.86
7.2.50.0100.00016.97
7.2.40.0040.00416.95
7.2.30.0060.00916.50
7.2.20.0060.00316.76
7.2.10.0000.00917.03
7.2.00.0060.00616.71
7.1.250.0110.00315.48
7.1.200.0090.00315.83
7.1.70.0030.00317.20
7.1.60.0040.00717.19
7.1.00.0000.08022.46
7.0.200.0110.00714.95
7.0.120.0100.08020.16
7.0.110.0270.06320.27
7.0.100.0270.05720.32
7.0.90.0300.09720.36
7.0.80.0100.06320.30
7.0.70.0030.07720.17
7.0.60.0270.06020.23
7.0.50.0430.07320.36
7.0.40.0370.08320.24
7.0.30.0500.05020.27
7.0.20.0370.05720.21
7.0.10.0430.06020.32
7.0.00.0570.05320.26
5.6.270.0100.06720.81
5.6.260.0270.07721.07
5.6.250.0030.06320.93
5.6.240.0170.08021.11
5.6.230.0170.07721.10
5.6.220.0170.06321.06
5.6.210.0130.06020.92
5.6.200.0170.05321.09
5.6.190.0100.05720.99
5.6.180.0170.07321.01
5.6.170.0130.05720.84
5.6.160.0070.06320.85
5.6.150.0130.05321.03
5.6.140.0200.06021.01
5.6.130.0330.05720.83
5.6.120.0070.07021.02
5.6.110.0230.07020.92
5.6.100.0100.06321.07
5.6.90.0130.06020.98
5.6.80.0270.05720.38
5.6.70.0170.05320.12
5.6.60.0270.06720.12
5.6.50.0130.05320.21
5.6.40.0030.06320.36
5.6.30.0130.05320.36
5.6.20.0230.04320.16
5.6.10.0130.05720.28
5.6.00.0130.06720.39

preferences:
68.02 ms | 401 KiB | 5 Q