3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1234kjhgkdfkgjh"; $result = is_int(substr($str, 0, 2)); var_dump($result);

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.0140.00416.63
8.3.60.0140.00718.03
8.3.50.0130.00716.56
8.3.40.0080.01223.81
8.3.30.0060.01018.45
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0090.00626.16
8.2.190.0070.00716.58
8.2.180.0070.00718.41
8.2.170.0070.00718.71
8.2.160.0070.01022.96
8.2.150.0030.00525.66
8.2.140.0030.01424.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0060.00322.12
8.2.100.0000.01217.78
8.2.90.0050.00317.83
8.2.80.0040.00419.07
8.2.70.0060.00317.50
8.2.60.0000.00817.38
8.2.50.0030.00517.63
8.2.40.0000.00819.23
8.2.30.0030.00617.46
8.2.20.0030.00719.46
8.2.10.0140.00317.52
8.2.00.0170.00017.74
8.1.280.0110.01425.92
8.1.270.0030.00523.78
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0040.00423.98
8.1.230.0070.00422.69
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0000.01017.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0060.00318.92
8.1.160.0090.00917.28
8.1.150.0120.00417.30
8.1.140.0080.00817.53
8.1.130.0160.00017.36
8.1.120.0150.00017.31
8.1.110.0100.00517.43
8.1.100.0180.00017.44
8.1.90.0080.00817.48
8.1.80.0140.00317.44
8.1.70.0070.00717.40
8.1.60.0070.00717.47
8.1.50.0140.00717.56
8.1.40.0140.00019.21
8.1.30.0110.00217.51
8.1.20.0080.00817.56
8.1.10.0130.00517.29
8.1.00.0120.00417.40
8.0.300.0070.00022.07
8.0.290.0030.00616.58
8.0.280.0100.00316.73
8.0.270.0030.01016.80
8.0.260.0150.00016.79
8.0.250.0080.00816.80
8.0.240.0130.00316.84
8.0.230.0120.00216.89
8.0.220.0120.00416.74
8.0.210.0160.00016.75
8.0.200.0160.00016.73
8.0.190.0100.00516.77
8.0.180.0110.00516.77
8.0.170.0020.01416.76
8.0.160.0140.00016.73
8.0.150.0130.00016.73
8.0.140.0120.00316.73
8.0.130.0050.01016.73
8.0.120.0040.00916.73
8.0.110.0090.00516.75
8.0.100.0090.00716.73
8.0.90.0080.00416.73
8.0.80.0080.00816.79
8.0.70.0060.00716.73
8.0.60.0100.00316.74
8.0.50.0070.00716.73
8.0.30.0130.00016.73
8.0.20.0100.00516.83
8.0.10.0100.00316.73

preferences:
40.76 ms | 401 KiB | 5 Q