3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numeric_string = '42'; $integer = 42; ctype_digit($numeric_string); // true ctype_digit($integer); // false is_numeric($numeric_string); // true is_numeric($integer); // true

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.0140.01016.48
8.3.50.0030.01016.09
8.3.40.0100.00318.56
8.3.30.0040.01118.59
8.3.20.0040.00420.09
8.3.10.0000.00821.63
8.3.00.0030.00517.25
8.2.180.0110.00616.63
8.2.170.0140.00322.96
8.2.160.0070.00720.26
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00219.33
8.2.120.0000.00726.35
8.2.110.0090.00020.52
8.2.100.0040.00817.91
8.2.90.0060.00318.83
8.2.80.0030.00517.97
8.2.70.0030.00717.50
8.2.60.0050.00317.80
8.2.50.0030.00518.10
8.2.40.0000.00720.61
8.2.30.0050.00321.07
8.2.20.0040.00417.98
8.2.10.0040.00417.98
8.2.00.0000.00818.08
8.1.280.0170.00325.92
8.1.270.0000.00722.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00023.84
8.1.230.0110.00022.10
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0080.00016.88
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0040.00418.96
8.1.160.0030.00318.92
8.1.150.0030.00520.61
8.1.140.0000.00819.55
8.1.130.0080.00018.86
8.1.120.0070.00017.42
8.1.110.0000.00717.38
8.1.100.0000.00717.43
8.1.90.0000.00817.37
8.1.80.0000.00817.37
8.1.70.0000.00817.43
8.1.60.0040.00417.52
8.1.50.0050.00317.33
8.1.40.0030.00517.41
8.1.30.0000.00817.50
8.1.20.0040.00417.53
8.1.10.0000.00917.41
8.1.00.0040.00417.35
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.42
8.0.270.0030.00317.18
8.0.260.0000.00616.75
8.0.250.0030.00316.93
8.0.240.0040.00416.88
8.0.230.0050.00316.91
8.0.220.0000.00716.79
8.0.210.0040.00416.70
8.0.200.0040.00416.91
8.0.190.0060.00316.87
8.0.180.0040.00416.88
8.0.170.0000.00716.79
8.0.160.0060.00316.78
8.0.150.0000.00816.75
8.0.140.0030.00316.66
8.0.130.0000.00513.30
8.0.120.0040.00416.79
8.0.110.0070.00016.64
8.0.100.0050.00216.83
8.0.90.0070.00016.80
8.0.80.0050.01116.82
8.0.70.0030.00516.70
8.0.60.0040.00416.65
8.0.50.0030.00316.75
8.0.30.0110.00817.03
8.0.20.0080.01217.40
8.0.10.0000.00716.90
8.0.00.0150.00416.55
7.4.330.0000.00615.55
7.4.320.0030.00316.47
7.4.300.0060.00016.41
7.4.290.0070.00016.42
7.4.280.0030.00616.51
7.4.270.0000.00616.42
7.4.260.0040.00416.48
7.4.250.0030.00316.48
7.4.240.0050.00216.52
7.4.230.0000.00716.51
7.4.220.0100.00716.63
7.4.210.0080.00616.42
7.4.200.0030.00316.30
7.4.160.0110.00516.44
7.4.150.0090.00917.40
7.4.140.0100.01217.86
7.4.130.0060.01216.47
7.4.120.0080.00916.36
7.4.110.0070.01016.40
7.4.100.0100.00716.30
7.4.90.0090.01216.39
7.4.80.0000.01619.39
7.4.70.0070.01116.38
7.4.60.0120.00816.28
7.4.50.0080.00816.02
7.4.40.0090.00916.18
7.4.30.0090.00916.35
7.4.00.0120.00314.95
7.3.330.0050.00013.00
7.3.320.0060.00012.87
7.3.310.0040.00416.05
7.3.300.0000.00715.98
7.3.290.0030.00316.16
7.3.280.0080.00816.11
7.3.270.0080.00917.40
7.3.260.0160.00416.24
7.3.250.0110.01316.21
7.3.240.0120.00516.38
7.3.230.0060.01016.09
7.3.210.0110.00516.02
7.3.200.0100.00716.33
7.3.190.0070.01016.23
7.3.180.0090.00616.22
7.3.170.0090.00916.51
7.3.160.0100.01016.08
7.2.330.0100.00716.45
7.2.320.0060.01116.58
7.2.310.0060.01016.20
7.2.300.0060.01216.53
7.2.290.0100.00616.32
7.2.60.0100.00616.82
7.2.00.0060.00919.24
7.1.200.0030.01015.77
7.1.100.0000.01017.68
7.1.70.0320.00815.14
7.1.60.0400.01332.91
7.1.50.0410.01732.93
7.1.40.0350.01632.70
7.1.30.0380.01632.54
7.1.20.0360.02032.82
7.1.10.0250.01214.60
7.1.00.0240.01114.81
7.0.200.0330.02114.75
7.0.190.0250.01014.89
7.0.180.0440.00914.30
7.0.170.0280.00814.57
7.0.160.0230.01514.24
7.0.150.0180.01414.26
7.0.140.0210.01514.39
7.0.130.0450.01014.50
7.0.120.0330.00614.67
7.0.110.0250.00914.29
7.0.100.0270.00714.26
7.0.90.0240.01014.36
7.0.80.0320.00314.47
7.0.70.0190.01514.52
7.0.60.1110.00714.21
7.0.50.0240.00914.26
7.0.40.0230.01114.57
7.0.30.0310.00314.58
7.0.20.0290.00714.42
7.0.10.0220.01314.71
7.0.00.0230.01214.71

preferences:
67.51 ms | 401 KiB | 5 Q