3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hex = "#ABCDEF"; echo substr($hex,1); if (substr($hex,1)=="#") $hex=substr($hex, 2); echo $hex; ?>

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.0090.00918.18
8.3.60.0040.01118.32
8.3.50.0100.01021.89
8.3.40.0040.01118.67
8.3.30.0160.00618.91
8.3.20.0100.00320.31
8.3.10.0000.00821.92
8.3.00.0050.00322.39
8.2.190.0090.00916.73
8.2.180.0100.01016.38
8.2.170.0060.01322.96
8.2.160.0140.00720.87
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0140.00617.25
8.2.110.0060.00320.39
8.2.100.0040.00717.66
8.2.90.0000.00719.13
8.2.80.0000.00918.04
8.2.70.0000.00817.63
8.2.60.0060.00318.16
8.2.50.0000.00818.07
8.2.40.0000.00918.03
8.2.30.0040.00417.95
8.2.20.0040.00417.65
8.2.10.0080.00019.47
8.2.00.0000.00819.38
8.1.280.0200.00025.92
8.1.270.0100.00722.09
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00723.71
8.1.230.0030.00719.16
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0130.00217.29
8.1.180.0080.00018.10
8.1.170.0050.00318.41
8.1.160.0050.00221.93
8.1.150.0040.00418.54
8.1.140.0060.00317.41
8.1.130.0070.00017.75
8.1.120.0030.00317.55
8.1.110.0070.00017.43
8.1.100.0040.00417.36
8.1.90.0040.00417.34
8.1.80.0050.00317.49
8.1.70.0030.00317.41
8.1.60.0030.00517.60
8.1.50.0080.00017.50
8.1.40.0040.00417.39
8.1.30.0030.00517.63
8.1.20.0040.00417.64
8.1.10.0040.00417.37
8.1.00.0040.00417.33
8.0.300.0070.00018.77
8.0.290.0000.00717.16
8.0.280.0050.00318.46
8.0.270.0030.00517.21
8.0.260.0030.00316.82
8.0.250.0070.00017.00
8.0.240.0000.00716.98
8.0.230.0070.00016.91
8.0.220.0040.00416.80
8.0.210.0030.00316.89
8.0.200.0030.00716.93
8.0.190.0050.00216.86
8.0.180.0070.00016.82
8.0.170.0070.00016.79
8.0.160.0000.00816.70
8.0.150.0030.00516.75
8.0.140.0040.00416.70
8.0.130.0060.00013.29
8.0.120.0000.00716.83
8.0.110.0040.00416.90
8.0.100.0000.00717.00
8.0.90.0050.00316.78
8.0.80.0060.00916.85
8.0.70.0070.00016.73
8.0.60.0070.00016.89
8.0.50.0000.00717.01
8.0.30.0140.00817.04
8.0.20.0090.01017.40
8.0.10.0050.00216.99
8.0.00.0080.01016.81
7.4.330.0000.00515.00
7.4.320.0000.00616.58
7.4.300.0000.00616.46
7.4.290.0030.00316.61
7.4.280.0000.00616.52
7.4.270.0000.00616.58
7.4.260.0030.00516.63
7.4.250.0000.00716.46
7.4.240.0020.00616.53
7.4.230.0000.00716.36
7.4.220.0120.00616.38
7.4.210.0080.01116.65
7.4.200.0000.00716.71
7.4.190.0030.00316.55
7.4.160.0030.01416.34
7.4.150.0100.00617.40
7.4.140.0130.00617.86
7.4.130.0130.00616.54
7.4.120.0110.00616.47
7.4.110.0150.00316.53
7.4.100.0140.00616.57
7.4.90.0100.00716.43
7.4.80.0090.01319.39
7.4.70.0090.00916.66
7.4.60.0030.01616.47
7.4.50.0060.00016.34
7.4.40.0000.01722.77
7.4.30.0030.01316.36
7.4.00.0030.00914.99
7.3.330.0000.00513.06
7.3.320.0050.00013.11
7.3.310.0040.00416.28
7.3.300.0070.00016.31
7.3.290.0070.01316.22
7.3.280.0100.00816.25
7.3.270.0170.00017.40
7.3.260.0150.00616.62
7.3.250.0120.00716.36
7.3.240.0060.01616.44
7.3.230.0110.00616.45
7.3.210.0150.00716.15
7.3.200.0080.00819.39
7.3.190.0140.00316.36
7.3.180.0090.00616.59
7.3.170.0120.00316.72
7.3.160.0090.00616.15
7.3.120.0070.01015.04
7.2.330.0100.00716.57
7.2.320.0090.01216.62
7.2.310.0040.01216.70
7.2.300.0030.01616.23
7.2.290.0120.00416.63
7.2.00.0030.01019.37
7.1.70.0000.00917.30
7.1.60.0000.01116.97
7.1.50.0000.02216.96
7.1.00.0070.07322.28
7.0.200.0040.01116.66
7.0.140.0070.07022.05
7.0.60.0100.05020.01
7.0.50.0000.05017.74
7.0.40.0130.07719.85
7.0.30.0270.04720.12
7.0.20.0270.04020.17
7.0.10.0130.08320.18
7.0.00.0100.07020.29
5.6.280.0100.06721.09
5.6.210.0170.06020.70
5.6.200.0000.04318.17
5.6.190.0130.04320.67
5.6.180.0500.07720.63
5.6.170.0230.05720.40
5.6.160.0030.04020.47
5.6.150.0070.05318.27
5.6.140.0030.07018.12
5.6.130.0130.07718.08
5.6.120.0100.05021.13
5.6.110.0100.09020.95
5.6.100.0170.07320.98
5.6.90.0000.04320.95
5.6.80.0070.05320.52
5.5.350.0100.08720.40
5.5.340.0130.04317.98
5.5.330.0070.08020.36
5.5.320.0030.08320.24
5.5.310.0400.07020.27
5.5.300.0130.07317.89
5.5.290.0070.08318.00
5.5.280.0030.06020.76
5.5.270.0100.06720.95
5.5.260.0100.07720.83
5.5.250.0200.07020.61
5.5.240.0030.07720.23
5.4.450.0370.06719.57
5.4.440.0370.05319.25
5.4.430.0070.06019.46
5.4.420.0170.05019.15
5.4.410.0200.05319.20
5.4.400.0800.00018.77
5.4.390.1370.00018.78
5.4.380.0270.06318.49
5.4.370.0430.04718.79
5.4.360.0230.05318.74
5.4.350.0330.05318.77
5.4.340.0270.05018.61
5.4.320.0030.03912.45
5.4.310.0040.04012.45
5.4.300.0100.03412.45
5.4.290.0050.03812.45
5.4.280.0040.03612.34
5.4.270.0030.03812.34
5.4.260.0130.04718.77
5.4.250.0170.07318.57
5.4.240.0130.04718.76
5.4.230.0200.06318.66
5.4.220.0100.07018.90
5.4.210.0130.04718.91
5.4.200.0000.05718.69
5.4.190.0070.05318.79
5.4.180.0100.06018.74
5.4.170.0070.05318.73
5.4.160.0000.05718.71
5.4.150.0100.05018.77
5.4.140.0100.04716.14
5.4.130.0000.05316.12
5.4.120.0100.04716.16
5.4.110.0130.05316.02
5.4.100.0100.04316.06
5.4.90.0070.05316.48
5.4.80.0070.05016.37
5.4.70.0070.05016.23
5.4.60.0130.04316.34
5.4.50.0070.05016.34
5.4.40.0100.04716.19
5.4.30.0030.05016.13
5.4.20.0200.03716.28
5.4.10.0030.05716.10
5.4.00.0100.04715.58
5.3.290.0040.04012.80
5.3.280.0070.07314.61
5.3.270.0130.05014.47
5.3.260.0100.05014.75
5.3.250.0170.05014.61
5.3.240.0030.05314.49
5.3.230.0100.05014.59
5.3.220.0230.06014.65
5.3.210.0000.05714.43
5.3.200.0070.05014.45
5.3.190.0100.04714.57
5.3.180.0000.05714.60
5.3.170.0070.05014.33
5.3.160.0100.05314.57
5.3.150.0070.05714.25
5.3.140.0130.04714.56
5.3.130.0070.05314.24
5.3.120.0100.05014.66
5.3.110.0070.08714.56
5.3.100.0000.05313.92
5.3.90.0030.05313.71
5.3.80.0070.06714.06
5.3.70.0130.04313.86

preferences:
70.19 ms | 401 KiB | 5 Q