3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numeric_string = '42'; $integer = 42; $test = 'test'; ctype_digit($numeric_string); // true ctype_digit($integer); // false ctype_digit($test); // false is_numeric($numeric_string); // true is_numeric($integer); // true is_numeric($test); // 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.40.0070.00718.54
8.3.30.0000.01418.55
8.3.20.0000.00720.09
8.3.10.0040.00421.73
8.3.00.0040.00417.38
8.2.170.0070.00722.96
8.2.160.0030.01020.57
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00419.32
8.2.120.0040.00426.35
8.2.110.0070.00317.80
8.2.100.0030.01017.78
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0100.00017.38
8.2.60.0000.00817.91
8.2.50.0030.00518.10
8.2.40.0030.00520.53
8.2.30.0000.00820.84
8.2.20.0050.00218.05
8.2.10.0040.00418.06
8.2.00.0000.00717.98
8.1.270.0070.00022.13
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.18
8.1.230.0080.00419.17
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0000.00818.88
8.1.160.0070.00019.02
8.1.150.0040.00420.62
8.1.140.0000.00919.49
8.1.130.0000.00718.82
8.1.120.0040.00417.36
8.1.110.0040.00417.36
8.1.100.0040.00417.36
8.1.90.0040.00417.32
8.1.80.0040.00417.29
8.1.70.0030.00517.29
8.1.60.0000.00717.49
8.1.50.0040.00417.35
8.1.40.0040.00417.44
8.1.30.0050.00317.43
8.1.20.0080.00017.48
8.1.10.0050.00317.45
8.1.00.0000.00717.25
8.0.300.0070.00020.05
8.0.290.0040.00416.63
8.0.280.0070.00018.39
8.0.270.0040.00417.15
8.0.260.0030.00316.77
8.0.250.0030.00316.91
8.0.240.0040.00416.80
8.0.230.0060.00316.93
8.0.220.0040.00416.79
8.0.210.0030.00616.85
8.0.200.0070.00016.91
8.0.190.0040.00416.91
8.0.180.0020.00516.91
8.0.170.0040.00416.88
8.0.160.0000.00816.87
8.0.150.0030.00516.75
8.0.140.0030.00316.85
8.0.130.0000.00613.15
8.0.120.0030.00316.80
8.0.110.0070.00016.63
8.0.100.0040.00416.90
8.0.90.0000.00816.80
8.0.80.0120.00316.75
8.0.70.0040.00416.65
8.0.60.0070.00016.80
8.0.50.0000.00716.79
8.0.30.0090.00817.05
8.0.20.0120.00717.40
8.0.10.0000.00716.95
8.0.00.0170.00016.68
7.4.330.0030.00315.55
7.4.320.0030.00316.34
7.4.300.0000.00616.55
7.4.290.0050.00316.55
7.4.280.0040.00416.29
7.4.270.0040.00416.48
7.4.260.0040.00416.48
7.4.250.0030.00616.45
7.4.240.0030.00316.41
7.4.230.0030.00316.56
7.4.220.0090.00916.57
7.4.210.0100.00816.45
7.4.200.0030.00316.63
7.4.160.0100.00816.40
7.4.150.0070.01717.40
7.4.140.0090.01017.86
7.4.130.0070.01116.57
7.4.120.0090.01016.36
7.4.110.0030.01316.43
7.4.100.0070.01016.58
7.4.90.0090.00916.39
7.4.80.0100.01019.39
7.4.70.0100.00616.43
7.4.60.0160.00316.43
7.4.50.0090.00616.54
7.4.40.0110.00616.27
7.4.30.0160.00716.48
7.4.10.0050.01115.02
7.4.00.0050.01114.84
7.3.330.0050.00013.06
7.3.320.0030.00312.98
7.3.310.0000.00616.14
7.3.300.0060.00016.03
7.3.290.0030.00315.99
7.3.280.0080.00816.11
7.3.270.0100.00617.40
7.3.260.0100.01016.14
7.3.250.0140.00716.38
7.3.240.0130.01116.27
7.3.230.0060.01016.32
7.3.210.0090.00616.08
7.3.200.0070.01116.07
7.3.190.0160.00016.07
7.3.180.0080.00816.11
7.3.170.0070.01016.29
7.3.160.0030.01416.42
7.3.130.0070.01014.57
7.3.120.0060.00914.68
7.3.110.0050.01214.59
7.3.100.0060.00914.69
7.3.90.0060.00814.68
7.3.80.0040.01114.66
7.3.70.0070.00714.71
7.3.60.0070.00714.71
7.3.50.0070.00814.70
7.3.40.0040.00914.64
7.3.30.0040.01014.59
7.3.20.0070.00716.52
7.3.10.0050.00716.46
7.3.00.0030.01216.48
7.2.330.0100.00716.28
7.2.320.0100.01316.29
7.2.310.0090.01216.54
7.2.300.0090.00916.23
7.2.290.0130.00316.34
7.2.260.0080.01014.88
7.2.250.0040.01314.89
7.2.240.0060.00714.78
7.2.230.0070.00914.73
7.2.220.0070.00914.87
7.2.210.0040.01114.88
7.2.200.0040.01014.81
7.2.190.0080.00814.72
7.2.180.0070.00914.74
7.2.170.0020.01214.79
7.2.160.0040.01214.86
7.2.150.0050.01016.63
7.2.140.0060.00816.61
7.2.130.0060.00816.65
7.2.120.0050.00916.69
7.2.110.0040.01016.70
7.2.100.0070.00716.65
7.2.90.0040.00816.71
7.2.80.0060.00916.79
7.2.70.0100.00816.72
7.2.60.0050.00816.77
7.2.50.0070.00716.73
7.2.40.0040.00916.66
7.2.30.0060.00816.74
7.2.20.0070.00916.71
7.2.10.0080.00716.68
7.2.00.0050.00817.18
7.1.330.0050.00915.70
7.1.320.0050.00915.60
7.1.310.0090.00415.68
7.1.300.0080.00715.55
7.1.290.0060.00715.75
7.1.280.0080.00615.63
7.1.270.0060.00715.62
7.1.260.0060.00615.65
7.1.250.0040.00815.75
7.1.240.0060.00815.57
7.1.230.0050.00815.69
7.1.220.0050.00715.76
7.1.210.0080.00515.53
7.1.200.0050.00815.62
7.1.190.0110.00415.69
7.1.180.0070.00915.68
7.1.170.0010.00915.55
7.1.160.0030.00815.63
7.1.150.0060.00515.71
7.1.140.0040.00615.58
7.1.130.0060.00715.38
7.1.120.0070.00815.66
7.1.110.0040.00715.76
7.1.100.0060.00616.41
7.1.90.0030.00815.74
7.1.80.0080.00415.80
7.1.70.0140.00515.71
7.1.60.0190.00620.05
7.1.50.0150.00820.08
7.1.40.0130.00819.87
7.1.30.0130.00919.83
7.1.20.0110.00819.93
7.1.10.0120.00915.48
7.1.00.0080.00815.47
7.0.330.0070.00715.34
7.0.320.0070.00615.31
7.0.310.0060.00415.39
7.0.300.0060.00615.38
7.0.290.0030.00915.35
7.0.280.0050.00815.34
7.0.270.0030.00715.24
7.0.260.0060.00615.32
7.0.250.0040.00815.28
7.0.240.0070.00515.53
7.0.230.0030.01015.39
7.0.220.0060.00515.42
7.0.210.0070.00515.30
7.0.200.0080.01015.16
7.0.190.0110.00615.18
7.0.180.0110.01015.14
7.0.170.0080.01015.02
7.0.160.0080.01115.13
7.0.150.0090.00915.15
7.0.140.0080.00715.09
7.0.130.0120.00615.20
7.0.120.0210.00715.64
7.0.110.0060.00915.42
7.0.100.0030.01315.58
7.0.90.0080.00615.53
7.0.80.0050.00715.59
7.0.70.0120.00915.00
7.0.60.0040.01015.49
7.0.50.0000.01215.55
7.0.40.0050.00614.20
7.0.30.0060.01013.78
7.0.20.0040.01014.02
7.0.10.0120.00713.68
7.0.00.0060.00714.15
5.6.400.0070.00614.22
5.6.390.0050.00714.31
5.6.380.0080.00614.33
5.6.370.0080.00614.18
5.6.360.0020.01014.21
5.6.350.0070.00514.19
5.6.340.0070.00714.12
5.6.330.0100.00514.31
5.6.320.0010.01014.38
5.6.310.0060.00514.13
5.6.300.0070.00614.35
5.6.290.0050.00514.17
5.6.280.0060.00714.10
5.6.270.0060.00614.22
5.6.260.0060.00614.24
5.6.250.0080.00414.24
5.6.240.0080.00414.22
5.6.230.0080.00414.10
5.6.220.0080.00514.15
5.6.210.0060.00714.29
5.6.200.0070.00614.11
5.6.190.0060.00714.15
5.6.180.0020.00914.30
5.6.170.0030.01014.30
5.6.160.0050.00814.09
5.6.150.0030.00914.20
5.6.140.0070.00614.23
5.6.130.0050.00814.15
5.6.120.0030.00914.15
5.6.110.0070.00713.99
5.6.100.0070.00614.15
5.6.90.0090.00614.05
5.6.80.0110.00314.02
5.6.70.0060.00914.15
5.6.60.0080.00414.16
5.6.50.0050.00614.07
5.6.40.0040.00814.11
5.6.30.0090.00414.09
5.6.20.0110.00314.03
5.6.10.0050.00914.13
5.6.00.0090.00214.10

preferences:
68.56 ms | 400 KiB | 5 Q