3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( "42", 1337, 0x539, 02471, 0b10100111001, 1337e0, "not numeric", array(), 9.1, null ); foreach ($tests as $element) { if (\is_numeric($element)) { $int = (int) $element; echo var_export($int, true) . " is numeric", PHP_EOL; $float = (float) ($element * 10); echo var_export($float, true) . " is numeric", PHP_EOL; } else { echo var_export($element, true) . " 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.0100.01018.30
8.3.50.0090.01218.29
8.3.40.0120.00618.71
8.3.30.0100.00718.71
8.3.20.0080.00019.16
8.3.10.0040.00421.77
8.3.00.0030.00520.82
8.2.180.0120.00318.41
8.2.170.0080.00822.96
8.2.160.0000.01420.80
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00719.77
8.2.120.0090.00026.35
8.2.110.0060.00320.93
8.2.100.0070.00417.91
8.2.90.0000.00917.50
8.2.80.0030.00517.97
8.2.70.0000.00917.80
8.2.60.0050.00318.16
8.2.50.0040.00418.10
8.2.40.0000.00819.38
8.2.30.0040.00419.26
8.2.20.0030.00617.94
8.2.10.0000.00718.12
8.2.00.0040.00417.66
8.1.280.0090.00925.92
8.1.270.0030.00618.87
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.54
8.1.230.0030.00722.15
8.1.220.0000.00817.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0060.00317.25
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0040.00418.92
8.1.150.0040.00418.91
8.1.140.0000.00722.05
8.1.130.0030.00720.01
8.1.120.0030.00517.36
8.1.110.0040.00417.45
8.1.100.0060.00317.46
8.1.90.0030.00517.46
8.1.80.0000.00717.41
8.1.70.0000.00717.45
8.1.60.0000.00817.55
8.1.50.0030.00717.51
8.1.40.0040.00417.54
8.1.30.0080.00017.63
8.1.20.0050.00217.54
8.1.10.0040.00417.49
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.36
8.0.270.0000.00717.16
8.0.260.0030.00318.32
8.0.250.0060.00316.97
8.0.240.0000.00716.96
8.0.230.0000.00816.96
8.0.220.0040.00416.85
8.0.210.0070.00016.78
8.0.200.0070.00016.97
8.0.190.0070.00016.90
8.0.180.0000.00716.91
8.0.170.0040.00416.87
8.0.160.0040.00416.78
8.0.150.0000.01016.76
8.0.140.0040.00416.68
8.0.130.0030.00313.31
8.0.120.0030.00516.84
8.0.110.0040.00716.88
8.0.100.0000.00716.77
8.0.90.0040.00416.79
8.0.80.0110.00816.84
8.0.70.0030.00516.72
8.0.60.0040.00416.86
8.0.50.0000.00716.95
8.0.30.0090.00917.09
8.0.20.0120.00717.40
8.0.10.0000.00716.80
8.0.00.0090.01016.69
7.4.330.0000.00515.55
7.4.320.0030.00316.52
7.4.300.0000.00716.60
7.4.290.0030.00316.57
7.4.280.0100.00016.50
7.4.270.0000.00716.41
7.4.260.0000.00716.42
7.4.250.0080.00016.45
7.4.240.0000.00716.64
7.4.230.0030.00316.60
7.4.220.0080.00016.57
7.4.210.0060.01216.46
7.4.200.0000.00716.66
7.4.160.0100.00616.48
7.4.140.0110.00817.86
7.4.130.0050.01416.41
7.4.120.0090.01116.39
7.4.110.0090.00916.63
7.4.100.0140.00316.51
7.4.90.0080.00816.61
7.4.80.0030.01419.39
7.4.70.0080.00816.48
7.4.60.0090.00616.37
7.4.50.0030.01416.36
7.4.40.0080.01616.46
7.3.330.0030.00313.09
7.3.320.0030.00313.10
7.3.310.0040.00416.23
7.3.300.0000.00716.28
7.3.290.0000.00716.28
7.3.280.0060.01116.29
7.3.260.0130.00816.50
7.3.240.0110.00916.48
7.3.230.0120.00416.41
7.3.210.0160.01316.27
7.3.200.0060.01016.30
7.3.190.0040.01816.38
7.3.180.0090.01516.72
7.3.170.0040.01416.25
7.3.160.0060.01616.26
7.2.330.0120.00616.78
7.2.320.0110.01116.62
7.2.310.0080.00816.78
7.2.300.0070.01016.50
7.2.290.0150.00316.61

preferences:
54.4 ms | 400 KiB | 5 Q