3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x='abcdefPOL'; var_dump(substr($x, -3, 3));

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.0030.01018.51
8.3.30.0090.00618.58
8.3.20.0050.00218.99
8.3.10.0050.00321.90
8.3.00.0040.00419.22
8.2.170.0110.00322.96
8.2.160.0070.00720.50
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00822.31
8.2.120.0040.00426.35
8.2.110.0100.00020.29
8.2.100.0040.00817.91
8.2.90.0000.00819.09
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0000.00717.93
8.2.50.0000.00818.10
8.2.40.0000.00822.18
8.2.30.0050.00321.02
8.2.20.0040.00418.00
8.2.10.0000.00717.89
8.2.00.0000.00717.89
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00020.78
8.1.230.0060.00919.16
8.1.220.0100.00017.74
8.1.210.0080.00018.77
8.1.200.0090.00017.10
8.1.190.0040.00417.10
8.1.180.0000.00918.10
8.1.170.0000.00818.35
8.1.160.0050.00319.00
8.1.150.0070.00018.81
8.1.140.0040.00419.55
8.1.130.0000.00818.80
8.1.120.0030.00317.39
8.1.110.0000.00717.39
8.1.100.0040.00417.39
8.1.90.0060.00317.31
8.1.80.0030.00517.40
8.1.70.0050.00317.35
8.1.60.0080.00017.55
8.1.50.0000.00817.33
8.1.40.0000.00817.33
8.1.30.0040.00417.40
8.1.20.0030.00917.60
8.1.10.0000.00817.51
8.1.00.0000.00717.21
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.40
8.0.270.0000.00717.25
8.0.260.0050.00216.67
8.0.250.0030.00316.73
8.0.240.0000.00816.88
8.0.230.0070.00016.88
8.0.220.0040.00416.72
8.0.210.0030.00316.79
8.0.200.0000.00616.94
8.0.190.0070.00016.85
8.0.180.0080.00016.80
8.0.170.0030.00316.87
8.0.160.0000.00816.73
8.0.150.0030.00616.81
8.0.140.0030.00316.66
8.0.130.0000.00513.20
8.0.120.0030.00516.70
8.0.110.0000.00716.69
8.0.100.0070.00016.69
8.0.90.0040.00416.70
8.0.80.0090.00616.75
8.0.70.0000.00716.84
8.0.60.0000.00716.90
8.0.50.0070.00016.66
8.0.30.0100.00817.13
8.0.20.0140.00617.40
8.0.10.0030.00717.04
8.0.00.0170.00016.69
7.4.330.0000.00615.55
7.4.320.0000.00716.36
7.4.300.0060.00016.57
7.4.290.0060.00316.52
7.4.280.0060.00316.43
7.4.270.0040.00416.48
7.4.260.0030.00313.20
7.4.250.0000.00716.54
7.4.240.0070.00016.45
7.4.230.0070.00016.41
7.4.220.0060.01216.45
7.4.210.0070.00716.64
7.4.200.0030.00316.26
7.4.160.0070.00916.39
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0080.01116.63
7.4.120.0100.00916.39
7.3.330.0000.00612.89
7.3.320.0000.00512.93
7.3.310.0030.00316.23
7.3.300.0000.00616.09
7.3.290.0040.01116.13
7.3.280.0090.00816.12
7.3.270.0030.01317.40
7.3.260.0150.00516.19
7.3.250.0080.00916.15
7.3.240.0110.00816.21

preferences:
55.07 ms | 400 KiB | 5 Q