3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr =['img src="images/Selection_005.png"', 'img src="images/Selection_006.png"']; $find = "images"; $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.39
8.5.00.0120.00919.86
8.4.150.0020.00014.05
8.4.140.0140.00917.40
8.4.130.0120.00718.66
8.4.120.0060.00223.98
8.4.110.0030.00722.07
8.4.100.0110.00918.71
8.4.90.0040.00819.01
8.4.80.0030.00517.83
8.4.70.0060.01217.57
8.4.60.0100.00919.01
8.4.50.0100.00719.46
8.4.40.0130.00717.79
8.4.30.0040.00417.52
8.4.20.0130.00320.82
8.4.10.0060.00319.32
8.3.280.0140.00618.32
8.3.270.0120.00816.83
8.3.260.0110.00816.45
8.3.250.0100.00819.00
8.3.240.0130.00717.12
8.3.230.0120.00716.43
8.3.220.0070.00517.08
8.3.210.0110.00816.62
8.3.200.0060.00316.65
8.3.190.0110.00716.66
8.3.180.0120.00718.88
8.3.170.0110.00716.30
8.3.160.0140.00317.01
8.3.150.0060.00317.23
8.3.140.0060.00316.41
8.3.130.0120.00618.44
8.3.120.0050.00520.51
8.3.110.0040.00720.94
8.3.100.0040.01124.06
8.3.90.0070.00026.77
8.3.80.0000.00917.97
8.3.70.0110.00716.50
8.3.60.0090.00618.25
8.3.50.0080.00617.34
8.3.40.0080.00818.58
8.3.30.0110.00418.63
8.3.20.0080.00020.36
8.3.10.0070.00023.46
8.3.00.0080.00019.85
8.2.290.0090.00920.24
8.2.280.0130.00618.34
8.2.270.0090.00917.21
8.2.260.0000.00818.60
8.2.250.0100.00618.58
8.2.240.0060.00317.21
8.2.230.0090.00022.58
8.2.220.0070.01737.54
8.2.210.0000.01026.77
8.2.200.0030.00618.17
8.2.190.0120.00916.58
8.2.180.0110.00717.95
8.2.170.0090.00622.96
8.2.160.0140.00022.14
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.57
8.2.110.0070.00322.07
8.2.100.0040.00718.17
8.2.90.0040.00418.04
8.2.80.0050.00317.97
8.2.70.0050.00318.04
8.2.60.0000.00918.22
8.2.50.0090.00018.10
8.2.40.0000.00722.32
8.2.30.0070.00019.49
8.2.20.0050.00317.95
8.2.10.0040.00418.05
8.2.00.0040.00418.29
8.1.330.0080.01121.88
8.1.320.0090.00715.92
8.1.310.0110.00716.60
8.1.300.0040.00419.57
8.1.290.0000.01030.84
8.1.280.0070.00725.92
8.1.270.0080.00020.38
8.1.260.0110.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00020.27
8.1.230.0060.00620.85
8.1.220.0000.00817.79
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0040.00417.35
8.1.180.0040.00718.10
8.1.170.0080.00018.46
8.1.160.0050.00218.93
8.1.150.0030.00320.19
8.1.140.0000.00717.70
8.1.130.0030.00319.05
8.1.120.0040.00417.44
8.1.110.0070.00017.29
8.1.100.0040.00417.44
8.1.90.0040.00417.40
8.1.80.0080.00017.43
8.1.70.0000.00817.36
8.1.60.0070.00017.51
8.1.50.0040.00417.53
8.1.40.0040.00417.55
8.1.30.0050.00317.68
8.1.20.0040.00417.57
8.1.10.0040.00417.53
8.1.00.0060.00317.41
8.0.300.0000.00819.71
8.0.290.0000.00816.63
8.0.280.0030.00318.34
8.0.270.0030.00317.29
8.0.260.0030.00316.81
8.0.250.0040.00316.85
8.0.240.0000.00816.89
8.0.230.0000.00716.96
8.0.220.0070.00016.88
8.0.210.0060.00016.87
8.0.200.0030.00316.90
8.0.190.0040.00416.85
8.0.180.0040.00416.91
8.0.170.0000.00816.77
8.0.160.0000.00916.95
8.0.150.0030.00616.82
8.0.140.0070.00016.84
8.0.130.0000.00713.28
8.0.120.0040.00416.85
8.0.110.0020.00516.81
8.0.100.0020.00516.71
8.0.90.0030.00516.87
8.0.80.0130.01016.80
8.0.70.0060.00316.71
8.0.60.0040.00416.99
8.0.50.0000.00716.83
8.0.30.0120.00917.07
8.0.20.0110.00817.40
8.0.10.0050.00217.07
8.0.00.0050.01416.69
7.4.330.0000.00515.55
7.4.320.0000.00716.60
7.4.300.0000.00616.55
7.4.290.0000.00716.44
7.4.280.0030.00516.49
7.4.270.0040.00416.39
7.4.260.0070.00016.47
7.4.250.0040.00416.59
7.4.240.0000.00716.50
7.4.230.0030.00316.65
7.4.220.0000.00816.47
7.4.210.0120.00616.49
7.4.200.0070.00016.64
7.4.160.0080.01116.49
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0080.00816.48
7.4.120.0100.00916.48
7.4.110.0070.01016.57
7.4.100.0090.01416.51
7.4.90.0100.00716.27
7.4.80.0070.01819.39
7.4.70.0090.01316.31
7.4.60.0070.01016.40
7.4.50.0040.01116.33
7.4.40.0130.00316.38
7.4.00.0060.01014.88
7.3.330.0030.00313.17
7.3.320.0000.00513.04
7.3.310.0050.00216.30
7.3.300.0000.00716.29
7.3.290.0070.00016.24
7.3.280.0090.00916.21
7.3.270.0090.00917.40
7.3.260.0110.00716.32
7.3.250.0130.00516.44
7.3.240.0100.00816.40
7.3.230.0090.01216.21
7.3.210.0130.00316.46
7.3.200.0100.01016.55
7.3.190.0090.00616.55
7.3.180.0030.01316.54
7.3.170.0100.00516.39
7.3.160.0050.01016.62
7.3.120.0070.01214.66
7.3.110.0070.01114.85
7.3.100.0050.01014.84
7.3.90.0060.00814.63
7.3.80.0120.00514.84
7.3.70.0050.00814.86
7.3.60.0090.00814.80
7.3.50.0030.01014.71
7.3.40.0050.00714.59
7.3.30.0000.01514.81
7.3.20.0060.01016.73
7.3.10.0100.00216.78
7.3.00.0090.00316.57
7.2.330.0070.01016.47
7.2.320.0130.00316.57
7.2.310.0160.00016.55
7.2.300.0080.00816.65
7.2.290.0130.00916.32
7.2.250.0100.01014.92
7.2.240.0080.00814.77
7.2.230.0050.01115.01
7.2.220.0020.01114.87
7.2.210.0050.01015.10
7.2.200.0070.01115.13
7.2.190.0120.00514.91
7.2.180.0030.01214.82
7.2.170.0020.01414.97
7.2.60.0030.00916.80
7.2.20.0350.01317.90
7.2.10.0320.00917.76
7.2.00.0220.01117.75
7.1.330.0050.00815.72
7.1.320.0070.01015.86
7.1.310.0070.00915.81
7.1.300.0020.01215.62
7.1.290.0050.00816.00
7.1.280.0070.00915.77
7.1.270.0100.00515.65
7.1.260.0070.00415.76
7.1.200.0070.00315.48
7.1.140.0200.01216.80
7.1.130.0310.01216.69
7.1.120.0340.01316.82
7.1.110.0330.00716.17
7.1.100.0310.00816.18
7.1.90.0380.00516.12
7.1.80.0350.00915.99
7.1.70.0230.01015.23
7.1.60.0500.01533.09
7.1.50.0470.00932.76
7.1.40.0510.01032.41
7.1.30.0450.01732.76
7.1.20.0410.01332.76
7.1.10.0290.00814.67
7.1.00.0250.01014.80

preferences:
34.55 ms | 403 KiB | 5 Q