3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Anthony"; var_dump( mb_substr(new stdClass, 0, 7), mb_substr($name, "a", 20), mb_substr($name, 20, "b") );

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.0110.00418.56
8.3.50.0070.01018.09
8.3.40.0100.00321.91
8.3.30.0070.00718.75
8.3.20.0030.00624.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.180.0090.00625.92
8.2.170.0040.01118.96
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0070.00319.82
8.2.100.0040.00817.91
8.2.90.0040.00417.88
8.2.80.0090.00018.78
8.2.70.0040.00417.50
8.2.60.0000.00817.50
8.2.50.0080.00017.92
8.2.40.0040.00417.80
8.2.30.0040.00419.55
8.2.20.0040.00417.99
8.2.10.0050.00320.53
8.2.00.0080.00019.17
8.1.280.0140.00025.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00623.83
8.1.230.0070.00320.97
8.1.220.0040.00418.57
8.1.210.0060.00319.10
8.1.200.0050.00317.35
8.1.190.0000.00817.36
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0020.00518.77
8.1.150.0040.00418.57
8.1.140.0030.00618.99
8.1.130.0040.00418.78
8.1.120.0070.00017.31
8.1.110.0000.00717.39
8.1.100.0000.00717.35
8.1.90.0030.00517.27
8.1.80.0030.00617.38
8.1.70.0000.00717.26
8.1.60.0030.00517.54
8.1.50.0030.00617.45
8.1.40.0040.00417.49
8.1.30.0030.00517.61
8.1.20.0040.00417.62
8.1.10.0060.00317.47
8.1.00.0030.00617.39
8.0.300.0040.00419.89
8.0.290.0040.00416.63
8.0.280.0050.00218.02
8.0.270.0090.00016.74
8.0.260.0000.00618.57
8.0.250.0040.00416.81
8.0.240.0070.00016.96
8.0.230.0030.00316.98
8.0.220.0030.00316.82
8.0.210.0080.00016.89
8.0.200.0040.00416.83
8.0.190.0090.00016.96
8.0.180.0030.00516.91
8.0.170.0000.00916.87
8.0.160.0040.00416.95
8.0.150.0040.00416.81
8.0.140.0050.00316.85
8.0.130.0050.00013.29
8.0.120.0000.00816.84
8.0.110.0000.00716.80
8.0.100.0000.00816.86
8.0.90.0030.00516.95
8.0.80.0000.00816.70
8.0.70.0040.00416.90
8.0.60.0000.00716.84
8.0.50.0040.00416.86
8.0.30.0040.00416.92
8.0.20.0000.00717.01
8.0.10.0000.00716.94
8.0.00.0000.00817.05
7.4.330.0000.00515.55
7.4.320.0030.00316.48
7.4.300.0030.00316.45
7.4.290.0000.00716.45
7.4.280.0080.00016.55
7.4.270.0040.00416.57
7.4.260.0000.00513.21
7.4.250.0070.00016.32
7.4.240.0040.00416.58
7.4.230.0070.00016.40
7.4.220.0030.00516.41
7.4.210.0030.00316.64
7.4.200.0000.00716.18
7.4.190.0050.00316.24
7.4.180.0040.00416.57
7.4.160.0000.00716.70
7.4.150.0040.00416.48
7.4.140.0050.00316.54
7.4.130.0070.00016.21
7.4.120.0050.00316.52
7.4.110.0030.00316.19
7.4.100.0050.00316.22
7.4.90.0040.00416.49
7.4.80.0070.00016.41
7.4.70.0000.00716.39
7.4.60.0050.00216.25
7.4.50.0070.00016.21
7.4.40.0030.00316.22
7.4.30.0050.00316.43
7.4.20.0000.00716.40
7.4.10.0000.00716.31
7.4.00.0070.00016.18
7.3.330.0000.00716.33
7.3.320.0030.00313.07
7.3.310.0000.00716.33
7.3.300.0070.00016.24
7.3.290.0030.00316.14
7.3.280.0000.00716.19
7.3.270.0080.00016.14
7.3.260.0030.00516.20
7.3.250.0040.00416.10
7.3.240.0040.00416.08
7.3.230.0000.00716.11
7.3.220.0040.00416.09
7.3.210.0040.00416.14
7.3.200.0070.00016.13
7.3.190.0030.00316.12
7.3.180.0070.00016.08
7.3.170.0000.00716.07
7.3.160.0070.00016.16
7.3.150.0000.00716.20
7.3.140.0030.00316.12
7.3.130.0030.00316.11
7.3.120.0040.00416.08
7.3.110.0050.00216.06
7.3.100.0030.00316.05
7.3.90.0030.00416.40
7.3.80.0000.00716.16
7.3.70.0050.00216.16
7.3.60.0000.00716.23
7.3.50.0000.00716.22
7.3.40.0040.00416.23
7.3.30.0040.00416.12
7.3.20.0090.00616.21
7.3.10.0000.00816.18
7.3.00.0040.00416.09

preferences:
55.89 ms | 401 KiB | 5 Q