3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["a", "b", "c", "d", "f"]; var_export( substr_replace($array, '_M', 1) );

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.4.130.0090.01017.49
8.4.120.0120.00822.36
8.4.110.0120.00822.40
8.4.100.0130.00817.48
8.4.90.0110.00920.54
8.4.80.0050.00418.72
8.4.70.0120.00918.85
8.4.60.0110.00820.66
8.4.50.0120.00818.32
8.4.40.0080.01218.88
8.4.30.0110.00723.97
8.4.20.0130.00619.24
8.4.10.0130.00719.31
8.3.260.0130.00516.37
8.3.250.0140.00520.87
8.3.240.0120.00716.83
8.3.230.0080.01116.73
8.3.220.0100.00918.76
8.3.210.0040.00418.52
8.3.200.0070.00216.35
8.3.190.0040.00417.05
8.3.180.0110.00722.39
8.3.170.0000.00817.20
8.3.160.0090.00518.93
8.3.150.0160.00317.05
8.3.140.0090.00916.43
8.3.130.0040.00416.40
8.3.120.0340.00816.09
8.3.110.0390.00416.43
8.3.100.0390.01016.71
8.3.90.0380.00616.32
8.3.80.0300.00716.34
8.3.70.0240.00316.48
8.3.60.0270.00316.38
8.3.50.0320.00016.23
8.3.40.0160.00317.34
8.3.30.0230.00617.11
8.3.20.0180.00017.09
8.3.10.0300.01017.28
8.3.00.0030.01516.98
8.2.290.0040.00520.56
8.2.280.0070.00318.34
8.2.270.0150.00316.71
8.2.260.0040.00417.15
8.2.250.0080.00018.48
8.2.240.0250.00316.47
8.2.230.0330.00616.22
8.2.220.0270.01416.24
8.2.210.0260.01316.47
8.2.200.0300.00716.17
8.2.190.0210.00416.20
8.2.180.0320.01016.32
8.2.170.0430.00617.24
8.2.160.0310.01017.46
8.2.150.0340.00817.24
8.2.140.0360.00317.16
8.2.130.0250.01117.21
8.2.120.0310.00717.00
8.2.110.0330.00317.25
8.2.100.0180.00917.43
8.2.90.0240.00517.08
8.2.80.0290.00917.15
8.2.70.0250.01617.16
8.2.60.0300.01316.95
8.2.50.0240.01517.22
8.2.40.0310.01617.07
8.2.30.0160.01217.14
8.2.20.0190.01217.36
8.2.10.0340.00417.18
8.2.00.0340.00317.36
8.1.330.0070.00921.96
8.1.320.0160.00415.79
8.1.310.0140.00318.18
8.1.300.0290.00616.09
8.1.290.0270.00415.79
8.1.280.0250.01415.79
8.1.270.0410.00017.03
8.1.260.0310.01017.23
8.1.250.0420.00017.13
8.1.240.0300.00916.85
8.1.230.0330.00717.25
8.1.220.0280.01017.13
8.1.210.0480.00016.63
8.1.200.0200.00016.98
8.1.190.0170.00316.95
8.1.180.0190.00616.70
8.1.170.0230.01317.16
8.1.160.0230.01617.23
8.1.150.0140.00716.93
8.1.140.0280.00317.02
8.1.130.0230.01317.21
8.1.120.0240.01217.11
8.1.110.0280.00717.30
8.1.100.0250.01217.23
8.1.90.0290.00817.06
8.1.80.0320.00417.16
8.1.70.0300.00717.13
8.1.60.0350.00817.12
8.1.50.0420.00716.85
8.1.40.0310.01316.88
8.1.30.0290.01117.21
8.1.20.0190.01217.23
8.1.10.0230.00617.29
8.1.00.0310.00717.13

preferences:
30.36 ms | 403 KiB | 5 Q