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)) { echo var_export($element, 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.70.0060.01216.63
8.3.60.0120.00316.38
8.3.50.0110.00716.57
8.3.40.0110.00418.67
8.3.30.0080.00818.37
8.3.20.0080.00020.21
8.3.10.0060.00323.65
8.3.00.0040.00423.59
8.2.180.0090.00618.53
8.2.170.0150.00322.96
8.2.160.0070.00720.52
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00722.25
8.2.120.0080.00026.35
8.2.110.0080.00020.48
8.2.100.0120.00017.64
8.2.90.0050.00319.23
8.2.80.0030.00617.97
8.2.70.0000.00917.63
8.2.60.0040.00417.92
8.2.50.0070.00318.16
8.2.40.0000.00720.61
8.2.30.0040.00421.09
8.2.20.0020.00517.97
8.2.10.0030.00517.97
8.2.00.0050.00318.04
8.1.280.0030.01025.92
8.1.270.0000.00823.91
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.22
8.1.230.0040.00717.82
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0090.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00820.42
8.1.160.0000.00718.80
8.1.150.0000.00718.79
8.1.140.0070.00017.76
8.1.130.0030.00518.88
8.1.120.0000.00717.33
8.1.110.0090.00017.46
8.1.100.0080.00017.34
8.1.90.0030.00317.45
8.1.80.0040.00417.44
8.1.70.0070.00017.46
8.1.60.0050.00317.47
8.1.50.0030.00617.50
8.1.40.0080.00317.51
8.1.30.0070.00017.55
8.1.20.0090.00017.57
8.1.10.0040.00417.52
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.25
8.0.260.0030.00316.73
8.0.250.0000.00716.94
8.0.240.0000.00716.92
8.0.230.0030.00316.99
8.0.220.0030.00316.91
8.0.210.0000.00716.86
8.0.200.0070.00017.00
8.0.190.0030.00616.96
8.0.180.0040.00416.93
8.0.170.0070.00016.90
8.0.160.0050.00216.95
8.0.150.0070.00416.84
8.0.140.0000.00716.73
8.0.130.0030.00513.30
8.0.120.0040.00416.89
8.0.110.0070.00016.80
8.0.100.0050.00216.79
8.0.90.0070.00016.78
8.0.80.0150.00016.88
8.0.70.0000.00716.76
8.0.60.0000.00816.79
8.0.50.0040.00416.78
8.0.30.0100.00817.03
8.0.20.0060.01317.40
8.0.10.0070.00016.83
8.0.00.0130.00516.76
7.4.330.0020.00216.73
7.4.320.0000.00616.53
7.4.300.0000.00616.59
7.4.290.0030.00316.48
7.4.280.0040.00416.60
7.4.270.0040.00416.50
7.4.260.0000.00716.59
7.4.250.0000.00716.57
7.4.240.0000.00716.59
7.4.230.0070.00016.62
7.4.220.0110.01216.52
7.4.210.0070.00716.60
7.4.200.0050.00216.39
7.4.160.0070.00816.39
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0070.01316.59
7.4.120.0080.01016.49
7.4.110.0120.00616.64
7.4.100.0170.00716.51
7.4.90.0090.00916.45
7.4.80.0070.01119.39
7.4.70.0060.01616.43
7.4.60.0090.00816.60
7.4.50.0090.00916.43
7.4.40.0130.00316.38
7.4.30.0070.01316.19
7.4.00.0040.01114.68
7.3.330.0050.00013.06
7.3.320.0000.00613.06
7.3.310.0030.00316.34
7.3.300.0030.00316.25
7.3.290.0100.00816.26
7.3.280.0090.00716.25
7.3.270.0060.01717.40
7.3.260.0050.01316.36
7.3.250.0100.00816.29
7.3.240.0100.01216.37
7.3.230.0190.00316.49
7.3.210.0080.00816.29
7.3.200.0100.00716.57
7.3.190.0060.01216.16
7.3.180.0070.01116.31
7.3.170.0070.01316.28
7.3.160.0130.00816.38
7.3.40.0080.01114.76
7.3.30.0210.00414.55
7.3.20.0140.00014.75
7.3.10.0100.00714.71
7.3.00.0070.01014.78
7.2.330.0080.01116.57
7.2.320.0150.00916.73
7.2.310.0060.01316.36
7.2.300.0070.01016.73
7.2.290.0140.00316.50
7.2.170.0080.00814.91
7.2.160.0090.01314.87
7.2.150.0150.00715.25
7.2.140.0030.01414.86
7.2.130.0070.00715.13
7.2.120.0150.00715.05
7.2.110.0110.00714.99
7.2.100.0160.01315.00
7.2.90.0280.00615.15
7.2.80.0140.00914.86
7.2.70.0150.00314.90
7.2.60.0100.00815.99
7.2.50.0150.01215.12
7.2.40.0140.00314.75
7.2.30.0110.01514.81
7.2.20.0170.01015.07
7.2.10.0100.00815.05
7.2.00.0110.00614.75
7.1.280.0090.01413.79
7.1.270.0180.01113.85
7.1.260.0100.00713.97
7.1.250.0150.01013.71
7.1.240.0130.00613.76
7.1.230.0130.01313.95
7.1.220.0170.01313.83
7.1.210.0080.01213.90
7.1.200.0120.00814.89
7.1.190.0210.00713.66
7.1.180.0190.00413.81
7.1.170.0160.00713.86
7.1.160.0060.01713.90
7.1.150.0120.00814.12
7.1.140.0490.00613.82
7.1.130.0180.00413.84
7.1.120.0120.00613.98
7.1.110.0100.01016.04
7.1.100.0130.01116.12
7.1.90.0130.00615.93
7.1.80.0080.01315.79
7.1.70.0140.00315.44
7.1.60.0200.01024.50
7.1.50.0130.01124.46
7.1.40.0140.01024.03
7.1.30.0140.01424.22
7.1.20.0220.00824.17
7.1.10.0100.01215.17
7.1.00.0170.01415.18
7.0.330.0270.00913.66
7.0.320.0250.00713.64
7.0.310.0080.01513.63
7.0.300.0080.01113.47
7.0.290.0230.00613.72
7.0.280.0240.00013.60
7.0.270.0140.01113.60
7.0.260.0220.01313.62
7.0.250.0160.00715.61
7.0.240.0140.00915.65
7.0.230.0110.00515.60
7.0.220.0130.00515.64
7.0.210.0170.00615.05
7.0.200.0100.00914.99
7.0.190.0090.01215.04
7.0.180.0090.00914.79
7.0.170.0070.01414.84
7.0.160.0060.01115.01
7.0.150.0100.00714.65
7.0.140.0140.00814.84
7.0.130.0150.01115.02
7.0.120.0070.01414.88
7.0.110.0170.00714.87
7.0.100.0080.01114.80
7.0.90.0120.01014.96
7.0.80.0090.00915.00
7.0.70.0080.01314.90
7.0.60.0150.00214.70
7.0.50.0120.01014.89
7.0.40.0120.00915.07
7.0.30.0120.00814.94
7.0.20.0090.00915.01
7.0.10.0100.01214.84
7.0.00.0170.01015.05
5.6.400.0060.01214.54
5.6.390.0130.01714.52
5.6.380.0120.00714.13

preferences:
69.83 ms | 400 KiB | 5 Q