3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rest = substr("abcdef", 6, -2); $rest1 = substr("abcdef", 6, 4); var_dump($rest); var_dump($rest1);

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.0090.00618.43
8.3.50.0130.00317.97
8.3.40.0100.00718.79
8.3.30.0150.00418.72
8.3.20.0040.00420.34
8.3.10.0040.00421.92
8.3.00.0040.00421.89
8.2.180.0090.00918.17
8.2.170.0040.01122.96
8.2.160.0030.01022.30
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00920.40
8.2.120.0030.00626.35
8.2.110.0060.00322.24
8.2.100.0040.00819.16
8.2.90.0000.00917.63
8.2.80.0040.00418.67
8.2.70.0030.00517.63
8.2.60.0040.00417.59
8.2.50.0000.00817.98
8.2.40.0080.00018.04
8.2.30.0040.00419.29
8.2.20.0040.00417.96
8.2.10.0050.00217.99
8.2.00.0000.00717.96
8.1.280.0070.00725.92
8.1.270.0110.00420.31
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.57
8.1.230.0070.00418.97
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0000.00718.10
8.1.170.0000.00717.62
8.1.160.0030.00418.69
8.1.150.0000.00718.61
8.1.140.0040.00417.51
8.1.130.0070.00019.01
8.1.120.0070.00017.39
8.1.110.0000.00717.35
8.1.100.0000.00817.38
8.1.90.0000.00817.28
8.1.80.0050.00217.40
8.1.70.0030.00317.39
8.1.60.0050.00317.39
8.1.50.0040.00417.37
8.1.40.0040.00417.38
8.1.30.0030.00617.52
8.1.20.0040.00417.54
8.1.10.0040.00417.32
8.1.00.0000.00817.27
8.0.300.0000.00719.73
8.0.290.0100.00016.75
8.0.280.0070.00018.37
8.0.270.0030.00617.06
8.0.260.0030.00318.43
8.0.250.0070.00016.77
8.0.240.0030.00516.90
8.0.230.0040.00416.94
8.0.220.0070.00016.85
8.0.210.0030.00516.69
8.0.200.0060.00016.77
8.0.190.0040.00416.81
8.0.180.0040.00416.77
8.0.170.0000.00816.73
8.0.160.0030.00316.78
8.0.150.0050.00516.70
8.0.140.0000.00816.68
8.0.130.0030.00613.29
8.0.120.0040.00416.76
8.0.110.0040.00416.83
8.0.100.0000.00916.71
8.0.90.0040.00416.64
8.0.80.0090.00616.82
8.0.70.0030.00516.82
8.0.60.0070.00316.71
8.0.50.0070.00016.88
8.0.30.0100.00816.86
8.0.20.0130.00817.40
8.0.10.0040.00416.84
8.0.00.0090.00916.53
7.4.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0030.00316.53
7.4.290.0060.00616.51
7.4.280.0030.00516.54
7.4.270.0070.00016.43
7.4.260.0000.00716.34
7.4.250.0000.00716.31
7.4.240.0000.00716.44
7.4.230.0070.00016.23
7.4.220.0120.00616.55
7.4.210.0000.01316.45
7.4.200.0040.00316.27
7.4.160.0080.00816.27
7.4.150.0100.01317.40
7.4.140.0130.00917.86
7.4.130.0110.00816.52
7.4.120.0100.01016.40
7.4.110.0110.01116.51
7.4.100.0030.01816.39
7.4.90.0100.01316.48
7.4.80.0130.00319.39
7.4.70.0070.01016.28
7.4.60.0070.00916.32
7.4.50.0070.00716.52
7.4.40.0100.00616.29
7.4.30.0080.00816.38
7.4.00.0100.00314.61
7.3.330.0000.00612.98
7.3.320.0030.00313.07
7.3.310.0030.00315.98
7.3.300.0040.00416.02
7.3.290.0080.00616.06
7.3.280.0080.00816.13
7.3.270.0120.00617.40
7.3.260.0120.00516.34
7.3.250.0090.00916.08
7.3.240.0130.00716.18
7.3.230.0070.01016.39
7.3.210.0070.01116.42
7.3.200.0090.00916.10
7.3.190.0030.01316.36
7.3.180.0090.00916.24
7.3.170.0100.01016.36
7.3.160.0130.00316.28
7.2.330.0030.01416.58
7.2.320.0130.00416.48
7.2.310.0070.01316.27
7.2.300.0220.00316.38
7.2.290.0140.00616.32
7.2.60.0060.00616.89
7.1.200.0130.00315.45
7.1.100.3040.00716.25
7.1.90.2140.00516.11
7.1.80.2070.01215.98
7.1.70.2230.01315.32
7.1.60.2260.00833.19
7.1.50.2750.01332.94
7.1.40.2520.01732.55
7.1.30.2320.01832.52
7.1.20.2380.01232.58
7.1.10.1980.00614.70
7.1.00.2260.00714.67
7.0.240.2280.01315.80
7.0.230.2570.01315.95
7.0.220.2610.01015.72
7.0.210.2990.01114.75
7.0.200.2580.01014.89
7.0.190.2330.00914.72
7.0.180.1990.01414.36
7.0.170.3060.00814.28
7.0.160.2740.00814.30
7.0.150.2130.00714.38
7.0.140.1800.00514.45
7.0.130.2370.01314.51
7.0.120.2590.00814.55
7.0.110.2710.01114.35
7.0.100.2990.01614.38
7.0.90.2980.00814.40
7.0.80.2160.00814.48
7.0.70.2520.01214.45
7.0.60.1200.01214.23
7.0.50.1310.01214.43
7.0.40.1160.01214.59
7.0.30.1880.01214.73
7.0.20.3100.00814.52
7.0.10.3830.01014.52
7.0.00.2170.01014.53

preferences:
67.97 ms | 401 KiB | 5 Q