3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ":Name :Name_en"; echo $str . chr(10); // The final int limits the function to a single replace. $str = str_replace(':Name', '"Test"', $str, 1); echo $str;

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.5.30.0080.01019.61
8.5.20.0100.00920.11
8.5.10.0090.00818.40
8.5.00.0160.00720.26
8.4.180.0070.00419.77
8.4.170.0120.01123.88
8.4.160.0120.01023.79
8.4.150.0070.00516.94
8.4.140.0090.01117.63
8.4.130.0130.00617.89
8.4.120.0050.00520.77
8.4.110.0140.00522.37
8.4.100.0100.00717.89
8.4.90.0060.00318.55
8.4.80.0100.00819.79
8.4.70.0110.00918.00
8.4.60.0090.00718.75
8.4.50.0120.00718.69
8.4.40.0080.00017.62
8.4.30.0130.00718.86
8.4.20.0120.00821.62
8.4.10.0080.00019.83
8.3.300.0130.00820.70
8.3.290.0110.00918.51
8.3.280.0160.00518.41
8.3.270.0100.00916.59
8.3.260.0100.00716.63
8.3.250.0140.00418.65
8.3.240.0120.00616.54
8.3.230.0110.00716.70
8.3.220.0100.00618.80
8.3.210.0040.00616.69
8.3.200.0070.00216.60
8.3.190.0050.00417.14
8.3.180.0110.00716.91
8.3.170.0100.00720.74
8.3.160.0090.00917.25
8.3.150.0070.01117.21
8.3.140.0070.01116.71
8.3.130.0100.01018.63
8.3.120.0090.00318.66
8.3.110.0090.00620.94
8.3.100.0040.00424.06
8.3.90.0070.01126.77
8.3.80.0040.00418.55
8.3.70.0280.00316.58
8.3.60.0280.00416.63
8.3.50.0030.01018.64
8.3.40.0210.00317.38
8.3.30.0250.00317.38
8.3.20.0240.00317.23
8.3.10.0220.00317.38
8.3.00.0260.00017.50
8.2.300.0140.00618.56
8.2.290.0060.00520.32
8.2.280.0100.00818.45
8.2.270.0130.00617.45
8.2.260.0120.00618.44
8.2.250.0040.00418.46
8.2.240.0120.00317.26
8.2.230.0080.00022.58
8.2.220.0040.00737.54
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0180.00516.58
8.2.180.0210.00416.58
8.2.170.0240.00317.75
8.2.160.0170.00717.88
8.2.150.0250.00517.73
8.2.140.0210.00817.63
8.2.130.0310.00417.62
8.2.120.0370.00617.38
8.2.110.0410.00017.63
8.2.100.0250.00217.50
8.2.90.0270.00017.63
8.2.80.0220.00717.50
8.2.70.0190.00317.25
8.2.60.0220.00317.50
8.2.50.0190.00817.61
8.2.40.0210.00317.50
8.2.30.0210.00317.38
8.2.20.0230.00017.47
8.2.10.0170.00417.50
8.2.00.0110.01117.48
8.1.340.0120.00917.70
8.1.330.0080.00321.95
8.1.320.0100.01016.28
8.1.310.0110.00416.48
8.1.300.0030.00617.92
8.1.290.0090.00030.84
8.1.280.0240.00316.58
8.1.270.0260.00017.11
8.1.260.0190.00517.24
8.1.250.0200.00317.36
8.1.240.0140.01017.12
8.1.230.0160.00817.35
8.1.220.0240.00017.36
8.1.210.0200.00416.98
8.1.200.0160.00817.35
8.1.190.0190.00516.98
8.1.180.0170.00817.10
8.1.170.0210.00317.00
8.1.160.0260.00317.00
8.1.150.0120.01217.13
8.1.140.0180.00716.85
8.1.130.0210.00317.13
8.1.120.0170.00617.25
8.1.110.0180.00416.98
8.1.100.0210.00017.34
8.1.90.0190.00517.34
8.1.80.0160.00617.13
8.1.70.0140.00817.10
8.1.60.0170.01017.35
8.1.50.0220.00717.25
8.1.40.0250.00417.13
8.1.30.0150.00817.34
8.1.20.0240.00317.13
8.1.10.0190.00817.35
8.1.00.0210.00017.28

preferences:
50.94 ms | 1004 KiB | 5 Q