3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr =['img src="images/Selection_005.png"', 'img src="images/Selection_006.png"', '<img src="documents/Selection_005.png" alt="" width="199" height="120" /></p>']; $find = ["images","documents"]; $replace ="/documents/20143/0"; Foreach($arr as $link){ Echo str_replace($find, $replace, $link) ."\n"; }

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.10.0100.00718.17
8.5.00.0140.00720.13
8.4.150.0020.00014.05
8.4.140.0150.00517.46
8.4.130.0100.00717.86
8.4.120.0040.00522.09
8.4.110.0100.01122.41
8.4.100.0090.01017.52
8.4.90.0110.00617.29
8.4.80.0070.00117.89
8.4.70.0110.00817.83
8.4.60.0080.01420.38
8.4.50.0130.00717.68
8.4.40.0100.01017.57
8.4.30.0150.00619.43
8.4.20.0090.00920.61
8.4.10.0090.00019.77
8.3.280.0120.01118.18
8.3.270.0120.00716.70
8.3.260.0130.00716.50
8.3.250.0120.00818.95
8.3.240.0100.00716.38
8.3.230.0050.00316.52
8.3.220.0110.00617.20
8.3.210.0100.00716.52
8.3.200.0120.00816.45
8.3.190.0100.00917.27
8.3.180.0080.01116.45
8.3.170.0120.00616.65
8.3.160.0140.00416.45
8.3.150.0070.01016.98
8.3.140.0100.01016.71
8.3.130.0060.00318.29
8.3.120.0090.00918.67
8.3.110.0110.00418.35
8.3.100.0160.00318.17
8.3.90.0150.00026.77
8.3.80.0080.00316.63
8.3.70.0100.00716.58
8.3.60.0120.00918.30
8.3.50.0130.00718.25
8.3.40.0030.01318.70
8.3.30.0120.00618.54
8.3.20.0080.00020.34
8.3.10.0070.00023.46
8.3.00.0030.00519.85
8.2.290.0110.00820.16
8.2.280.0120.00718.05
8.2.270.0070.01116.59
8.2.260.0120.00619.05
8.2.250.0100.00716.42
8.2.240.0000.00918.69
8.2.230.0040.00420.94
8.2.220.0040.00437.54
8.2.210.0000.00826.77
8.2.200.0060.00318.16
8.2.190.0120.00616.58
8.2.180.0030.01025.92
8.2.170.0040.01118.88
8.2.160.0070.00722.08
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00319.21
8.2.120.0040.00426.35
8.2.110.0090.00319.33
8.2.100.0080.00317.91
8.2.90.0080.00017.63
8.2.80.0040.00418.80
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0000.00817.55
8.2.40.0000.00822.14
8.2.30.0030.00619.43
8.2.20.0040.00418.12
8.2.10.0030.00518.09
8.2.00.0000.00718.13
8.1.330.0130.00519.95
8.1.320.0110.00916.24
8.1.310.0040.00418.66
8.1.300.0060.00316.14
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0080.00020.21
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0060.00317.66
8.1.230.0080.00417.63
8.1.220.0050.00317.79
8.1.210.0030.00618.77
8.1.200.0090.00017.36
8.1.190.0000.00817.35
8.1.180.0110.00018.10
8.1.170.0070.00019.02
8.1.160.0050.00318.79
8.1.150.0030.00320.20
8.1.140.0040.00417.76
8.1.130.0070.00019.06
8.1.120.0000.00817.37
8.1.110.0040.00417.29
8.1.100.0070.00017.34
8.1.90.0000.00717.35
8.1.80.0040.00417.35
8.1.70.0030.00317.47
8.1.60.0080.00017.61
8.1.50.0050.00317.40
8.1.40.0000.00917.40
8.1.30.0000.00717.57
8.1.20.0040.00417.55
8.1.10.0070.00017.48
8.1.00.0030.00617.41
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00818.44
8.0.270.0050.00317.26
8.0.260.0000.00716.82
8.0.250.0030.00316.82
8.0.240.0030.00616.87
8.0.230.0000.00716.99
8.0.220.0000.00716.79
8.0.210.0000.00716.82
8.0.200.0000.00716.94
8.0.190.0030.00616.95
8.0.180.0030.00316.93
8.0.170.0040.00416.91
8.0.160.0050.00316.93
8.0.150.0040.00716.82
8.0.140.0000.00716.80
8.0.130.0050.00013.30
8.0.120.0050.00216.75
8.0.110.0040.00416.96
8.0.100.0070.00016.76
8.0.90.0070.00016.94
8.0.80.0090.00616.89
8.0.70.0050.00316.76
8.0.60.0000.00816.94
8.0.50.0070.00016.76
8.0.30.0100.01017.09
8.0.20.0120.01017.40
8.0.10.0080.00016.91
8.0.00.0120.00616.99
7.4.330.0030.00315.55
7.4.320.0060.00016.50
7.4.300.0000.00616.46
7.4.290.0030.00316.37
7.4.280.0040.00416.66
7.4.270.0000.00716.52
7.4.260.0030.00316.48
7.4.250.0000.00816.54
7.4.240.0000.00716.65
7.4.230.0030.00316.40
7.4.220.0040.00416.34
7.4.210.0060.01116.61
7.4.200.0040.00416.50
7.4.160.0100.00616.45
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0170.00016.41
7.4.120.0130.00716.44
7.4.110.0120.00916.44
7.4.100.0070.01416.41
7.4.90.0070.01116.35
7.4.80.0130.00419.39
7.4.70.0190.00016.32
7.4.60.0110.00616.39
7.4.50.0080.00816.64
7.4.40.0090.00616.42
7.4.00.0100.00714.98
7.3.330.0050.00012.99
7.3.320.0030.00313.13
7.3.310.0070.00016.32
7.3.300.0040.00416.16
7.3.290.0000.00716.25
7.3.280.0060.01016.25
7.3.270.0070.01017.40
7.3.260.0110.00716.50
7.3.250.0100.00816.51
7.3.240.0100.00816.34
7.3.230.0070.01016.57
7.3.210.0040.01216.20
7.3.200.0130.00316.30
7.3.190.0080.00816.61
7.3.180.0090.01216.16
7.3.170.0060.00916.45
7.3.160.0080.00816.48
7.3.120.0090.00914.98
7.3.110.0160.00314.90
7.3.100.0030.00915.02
7.3.90.0030.00614.53
7.3.80.0030.00914.77
7.3.70.0060.01014.80
7.3.60.0100.00614.88
7.3.50.0060.00314.62
7.3.40.0040.01514.91
7.3.30.0040.01414.66
7.3.20.0060.00916.47
7.3.10.0060.00316.64
7.3.00.0120.00316.82
7.2.330.0070.01016.32
7.2.320.0000.02016.68
7.2.310.0130.00416.52
7.2.300.0100.00716.55
7.2.290.0100.00916.46
7.2.240.0040.01115.21
7.2.230.0080.00414.89
7.2.220.0040.00714.98
7.2.210.0000.01715.02
7.2.200.0040.00814.88
7.2.190.0000.00914.73
7.2.180.0140.00315.00
7.2.170.0090.00915.15
7.2.160.0040.01114.94
7.2.150.0070.00716.65
7.2.140.0000.01416.83
7.2.130.0030.01017.08
7.2.120.0110.00316.85
7.2.110.0060.00616.74
7.2.100.0000.00916.90
7.2.90.0040.01216.88
7.2.80.0040.01216.93
7.2.70.0040.01116.87
7.2.60.0070.00716.76
7.2.50.0030.00816.90
7.2.40.0110.00317.00
7.2.30.0030.01016.68
7.2.20.0190.00817.27
7.2.10.0130.01417.31
7.2.00.0150.01017.36
7.1.330.0070.01015.87
7.1.320.0060.00615.83
7.1.310.0060.00615.90
7.1.300.0000.00815.78
7.1.290.0000.01116.02
7.1.280.0070.01115.81
7.1.270.0030.01015.70
7.1.260.0150.00015.71
7.1.250.0030.01015.80
7.1.200.0100.00315.53
7.1.140.0300.00616.62
7.1.130.0280.01216.50
7.1.120.0600.00716.57
7.1.110.0320.00816.08
7.1.100.0330.00316.03
7.1.90.0430.00916.16
7.1.80.0490.00616.18
7.1.70.0310.01415.19
7.1.60.0580.00633.21
7.1.50.0550.01032.64
7.1.40.0750.00332.53
7.1.30.0940.01032.63
7.1.20.0610.02332.71
7.1.10.0520.01514.47
7.1.00.0560.01514.71

preferences:
36.66 ms | 403 KiB | 5 Q