3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (['64a', '1.42', '-43b', '+45', '2.34e4', '64'] as $id){ printf("%6s: is_numeric: %6s; ctype_digit: %6s\r\n", $id, b(is_numeric($id)), b(ctype_digit($id))); } function b($b){ return $b?'true':'false'; }

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.0110.01118.18
8.3.50.0160.00018.07
8.3.40.0070.00718.84
8.3.30.0030.01018.71
8.3.20.0040.00419.02
8.3.10.0040.00423.54
8.3.00.0090.00019.68
8.2.180.0100.01016.50
8.2.170.0200.00022.96
8.2.160.0170.00018.96
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.64
8.2.120.0040.00426.35
8.2.110.0030.00620.95
8.2.100.0040.00717.66
8.2.90.0030.00617.64
8.2.80.0080.00018.09
8.2.70.0000.00817.91
8.2.60.0050.00317.68
8.2.50.0070.00318.10
8.2.40.0040.00419.05
8.2.30.0040.00421.29
8.2.20.0000.00717.92
8.2.10.0030.00618.00
8.2.00.0040.00419.30
8.1.280.0130.00325.92
8.1.270.0070.00022.09
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.34
8.1.230.0060.00620.89
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.00816.88
8.1.190.0000.00817.11
8.1.180.0030.00518.10
8.1.170.0060.00318.32
8.1.160.0000.00718.83
8.1.150.0040.00420.45
8.1.140.0000.00717.87
8.1.130.0030.00318.94
8.1.120.0040.00417.38
8.1.110.0050.00517.32
8.1.100.0020.00517.35
8.1.90.0070.00017.29
8.1.80.0030.00717.21
8.1.70.0020.00517.23
8.1.60.0040.00417.55
8.1.50.0040.00417.45
8.1.40.0040.00417.45
8.1.30.0090.00017.55
8.1.20.0040.00417.63
8.1.10.0000.00717.51
8.1.00.0030.00617.47
8.0.300.0070.00019.93
8.0.290.0000.00716.63
8.0.280.0000.00718.49
8.0.270.0000.00717.24
8.0.260.0000.00617.17
8.0.250.0030.00316.90
8.0.240.0030.00316.95
8.0.230.0060.00016.89
8.0.220.0080.00016.77
8.0.210.0020.00516.78
8.0.200.0060.00016.93
8.0.190.0040.00416.95
8.0.180.0040.00416.91
8.0.170.0030.00516.86
8.0.160.0070.00016.87
8.0.150.0040.00416.82
8.0.140.0080.00016.71
8.0.130.0060.00013.30
8.0.120.0080.00016.81
8.0.110.0000.00716.81
8.0.100.0070.00016.83
8.0.90.0000.00716.92
8.0.80.0060.00916.84
8.0.70.0000.00716.83
8.0.60.0000.00816.66
8.0.50.0050.00316.84
8.0.30.0110.00717.14
8.0.20.0060.01317.40
8.0.10.0040.00416.81
8.0.00.0090.00816.71
7.4.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0000.00716.54
7.4.290.0030.00516.50
7.4.280.0000.00716.44
7.4.270.0000.00916.34
7.4.260.0040.00416.41
7.4.250.0000.00816.30
7.4.240.0040.00416.53
7.4.230.0000.00616.55
7.4.220.0030.00616.65
7.4.210.0080.00816.43
7.4.200.0000.00716.33
7.4.160.0100.00716.42
7.4.140.0090.00817.86
7.4.130.0040.01516.39
7.4.120.0120.00816.38
7.4.110.0040.01316.52
7.4.100.0040.01216.36
7.4.90.0120.00616.48
7.4.80.0130.00719.39
7.4.70.0090.00916.30
7.4.60.0060.01016.32
7.4.50.0040.01216.57
7.4.40.0000.02016.43
7.4.00.0150.00014.58
7.3.330.0060.00013.09
7.3.320.0030.00313.19
7.3.310.0040.00416.36
7.3.300.0070.00016.27
7.3.290.0000.00716.18
7.3.280.0100.01116.34
7.3.260.0080.01016.27
7.3.240.0060.01116.36
7.3.230.0100.01016.32
7.3.210.0100.00716.57
7.3.200.0090.00916.48
7.3.190.0060.00916.60
7.3.180.0090.00616.50
7.3.170.0090.00616.31
7.3.160.0060.00916.54
7.2.330.0030.02216.48
7.2.320.0080.00916.68
7.2.310.0040.01916.50
7.2.300.0090.01016.62
7.2.290.0110.01116.68
7.2.60.0080.00416.98
7.2.40.0880.00817.87
7.2.30.1070.01017.50
7.2.20.1110.01417.55
7.2.10.0890.00717.61
7.2.00.1170.01118.02
7.1.200.0040.00815.64
7.1.160.0760.00816.66
7.1.150.0670.00716.61
7.1.140.1290.00916.76
7.1.130.1030.01017.03
7.1.120.2170.00516.86
7.1.110.1070.00916.44
7.1.100.1220.00615.99
7.1.90.1200.01216.37
7.1.80.1060.00916.36
7.1.70.1000.00915.54
7.1.60.1280.01033.33
7.1.50.1200.01333.16
7.1.40.1620.01532.67
7.1.30.1420.01532.66
7.1.20.1070.01332.80
7.1.10.0900.00914.50
7.1.00.1180.00714.98

preferences:
64.95 ms | 401 KiB | 5 Q