3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'dddd'; var_dump(substr($a, 0, 200));

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.0180.00416.50
8.3.50.0110.00416.57
8.3.40.0070.00720.37
8.3.30.0150.00018.46
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.180.0030.01316.50
8.2.170.0130.01018.66
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00317.80
8.2.110.0000.00921.92
8.2.100.0040.00817.66
8.2.90.0000.00822.38
8.2.80.0050.00317.97
8.2.70.0050.00517.63
8.2.60.0060.00317.38
8.2.50.0130.00617.00
8.2.40.0130.00317.25
8.2.30.0080.00017.50
8.2.20.0080.00817.13
8.2.10.0130.00317.37
8.2.00.0160.00017.38
8.1.280.0140.00325.92
8.1.270.0060.00324.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.37
8.1.230.0000.01121.03
8.1.220.0030.00517.79
8.1.210.0040.00418.81
8.1.200.0050.00517.22
8.1.190.0080.00017.10
8.1.180.0110.00516.98
8.1.170.0120.00417.13
8.1.160.0160.00017.00
8.1.150.0130.00417.13
8.1.140.0140.00317.13
8.1.130.0120.00417.22
8.1.120.0090.00917.25
8.1.110.0090.00917.13
8.1.100.0110.00717.25
8.1.90.0130.00317.38
8.1.80.0090.00917.00
8.1.70.0170.00017.13
8.1.60.0150.00317.38
8.1.50.0090.00917.13
8.1.40.0150.00417.00
8.1.30.0070.01117.38
8.1.20.0130.00417.35
8.1.10.0090.00917.13
8.1.00.0090.00916.88
8.0.300.0050.00320.04
8.0.290.0040.00416.63
8.0.280.0170.00016.52
8.0.270.0140.00416.52
8.0.260.0180.00016.52
8.0.250.0120.00616.52
8.0.240.0140.00416.52
8.0.230.0160.00016.52
8.0.220.0160.00016.52
8.0.210.0140.00216.52
8.0.200.0100.00616.63
8.0.190.0170.00016.52
8.0.180.0100.00716.52
8.0.170.0130.00316.52
8.0.160.0160.00016.52
8.0.150.0140.00316.75
8.0.140.0130.00316.52
8.0.130.0130.00316.63
8.0.120.0110.00616.63
8.0.110.0080.00816.52
8.0.100.0070.01016.52
8.0.90.0080.00816.52
8.0.80.0080.00816.63
8.0.70.0160.00016.63
8.0.60.0120.00416.52
8.0.50.0080.00816.52
8.0.30.0170.00316.52
8.0.20.0110.00516.52
8.0.10.0150.00016.59

preferences:
44.35 ms | 401 KiB | 5 Q