3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_str_starts_with(string $haystack, string $needle): bool { return true; } var_dump(str_starts_with(null, 'abc')); var_dump(my_str_starts_with(null, 'abc'));

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.0080.00816.75
8.3.50.0110.00416.27
8.3.40.0120.00320.52
8.3.30.0140.00718.66
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0150.00725.92
8.2.170.0040.01818.82
8.2.160.0130.00022.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.66
8.2.110.0070.00320.99
8.2.100.0110.00017.84
8.2.90.0050.00317.91
8.2.80.0090.00018.03
8.2.70.0060.00317.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00818.03
8.2.30.0040.00417.87
8.2.20.0000.00717.92
8.2.10.0000.00719.18
8.2.00.0070.00019.17
8.1.280.0080.00825.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0060.00928.09
8.1.240.0100.00722.42
8.1.230.0030.00820.83
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0000.00917.22
8.1.180.0040.00418.10
8.1.170.0080.00018.46
8.1.160.0000.00818.75
8.1.150.0000.00718.71
8.1.140.0000.00718.66
8.1.130.0000.00719.95
8.1.120.0070.00017.26
8.1.110.0080.00017.28
8.1.100.0030.00417.37
8.1.90.0080.00017.25
8.1.80.0000.00817.23
8.1.70.0000.00717.36
8.1.60.0000.00817.48
8.1.50.0080.00017.42
8.1.40.0050.00317.30
8.1.30.0040.00417.50
8.1.20.0040.00417.59
8.1.10.0070.00017.48
8.1.00.0000.00817.32
8.0.300.0070.00019.90
8.0.290.0070.00016.63
8.0.280.0000.00818.43
8.0.270.0000.00817.96
8.0.260.0040.00418.38
8.0.250.0030.00316.85
8.0.240.0070.00017.00
8.0.230.0020.00516.86
8.0.220.0030.00516.91
8.0.210.0030.00316.80
8.0.200.0030.00316.96
8.0.190.0040.00416.84
8.0.180.0000.01016.79
8.0.170.0040.00416.90
8.0.160.0000.00716.91
8.0.150.0030.00616.88
8.0.140.0040.00416.73
8.0.130.0000.00613.21
8.0.120.0040.00416.84
8.0.110.0090.00016.68
8.0.100.0030.00416.79
8.0.90.0080.00016.88
8.0.80.0090.00516.83
8.0.70.0030.00616.86
8.0.60.0040.00416.76
8.0.50.0000.00816.77
8.0.30.0080.00816.86
8.0.20.0070.01216.93
8.0.10.0040.00416.72
8.0.00.0130.00616.61
7.4.330.0040.00015.55
7.4.320.0000.00716.43
7.4.300.0030.00316.41
7.4.290.0070.00016.42
7.4.280.0030.00716.53
7.4.270.0000.00616.52
7.4.260.0060.00013.26
7.4.250.0000.00916.30
7.4.240.0070.00016.34
7.4.230.0030.00316.33
7.4.220.0000.00716.43
7.4.210.0090.00716.48
7.4.200.0040.00416.61
7.4.130.0120.00616.49
7.4.120.0130.00916.26
7.4.110.0100.00716.45
7.4.100.0070.01416.09
7.4.90.0120.00716.22
7.4.80.0060.01215.75
7.4.70.0130.00716.16
7.4.60.0100.00915.84
7.4.50.0140.01015.86
7.4.40.0150.00816.36
7.4.30.0130.01316.37
7.4.20.0130.01016.14
7.4.10.0120.01316.34
7.4.00.0110.00716.54
7.3.330.0030.00316.26
7.3.320.0030.00313.31
7.3.310.0000.00916.20
7.3.300.0030.00316.25
7.3.290.0040.01016.35
7.3.260.0150.00316.30
7.3.230.0130.01016.27
7.3.220.0080.01316.11
7.3.210.0120.01016.06
7.3.200.0060.01516.07
7.3.190.0130.00816.05
7.3.180.0160.00416.27
7.3.170.0150.00916.44
7.3.160.0130.00816.13
7.3.150.0180.00316.16
7.3.140.0110.01116.44
7.3.130.0160.00516.47
7.3.120.0030.01616.29
7.3.110.0130.00616.42
7.3.100.0100.00716.32
7.3.90.0140.00516.25
7.3.80.0160.00316.39
7.3.70.0130.01016.42
7.3.60.0090.00916.11
7.3.50.0120.00616.45
7.3.40.0110.00816.33
7.3.30.0100.01016.23
7.3.20.0190.00016.36
7.3.10.0100.01016.13
7.3.00.0120.00616.24
7.2.330.0130.00716.20
7.2.320.0090.01616.50
7.2.310.0120.00916.52
7.2.300.0080.01216.11
7.2.290.0100.01416.46
7.2.280.0160.00616.36
7.2.270.0140.01016.07
7.2.260.0130.00716.46
7.2.250.0070.01316.51
7.2.240.0100.01016.44
7.2.230.0090.00916.22
7.2.220.0100.00816.22
7.2.210.0150.00916.23
7.2.200.0100.01016.54
7.2.190.0110.00916.20
7.2.180.0090.00916.48
7.2.170.0040.01616.42
7.2.160.0160.00416.26
7.2.150.0140.00516.56
7.2.140.0130.00616.46
7.2.130.0070.01116.43
7.2.120.0110.00816.39
7.2.110.0120.00916.28
7.2.100.0180.00716.32
7.2.90.0120.00916.37
7.2.80.0170.00316.14
7.2.70.0130.00616.38
7.2.60.0100.00916.63
7.2.50.0310.01316.27
7.2.40.0060.01416.40
7.2.30.0150.00716.57
7.2.20.0110.01516.38
7.2.10.0060.01216.26
7.2.00.0120.00616.16

preferences:
71.62 ms | 401 KiB | 5 Q