3v4l.org

run code in 300+ PHP versions simultaneously
<?php $StringToReplace = array("\"","'"); $text = "Plagiarism is the \"wrongful appropriation\" and \"stealing and publication\" of another author's \"language\""; foreach($StringToReplace as $String){ $text = str_replace($String,"",$text); } echo "<pre>$text</pre>"; $text = "Plagiarism is the \"wrongful appropriation\" and \"stealing and publication\" of another author's \"language"; echo str_replace( array( "'",'"' ),'',$text);

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.0130.00318.09
8.3.50.0100.00718.07
8.3.40.0150.00018.67
8.3.30.0120.00318.65
8.3.20.0030.00619.04
8.3.10.0050.00319.34
8.3.00.0040.00423.66
8.2.180.0150.00618.22
8.2.170.0100.01022.96
8.2.160.0140.00718.88
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00019.64
8.2.120.0060.00326.35
8.2.110.0060.00321.06
8.2.100.0030.00718.09
8.2.90.0030.00918.86
8.2.80.0000.00918.03
8.2.70.0030.00618.03
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0040.00419.18
8.2.30.0070.00019.44
8.2.20.0100.00018.03
8.2.10.0000.00819.79
8.2.00.0030.00319.38
8.1.280.0120.00325.92
8.1.270.0070.00020.43
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00720.93
8.1.230.0060.00617.77
8.1.220.0080.00317.74
8.1.210.0030.00518.77
8.1.200.0000.00817.35
8.1.190.0080.00017.13
8.1.180.0050.00318.10
8.1.170.0030.00618.49
8.1.160.0000.00718.93
8.1.150.0040.00418.80
8.1.140.0000.01117.73
8.1.130.0000.00619.01
8.1.120.0030.00617.48
8.1.110.0040.00817.48
8.1.100.0040.00417.39
8.1.90.0080.00017.46
8.1.80.0050.00317.35
8.1.70.0030.00517.48
8.1.60.0060.00617.52
8.1.50.0060.00617.39
8.1.40.0000.00817.42
8.1.30.0000.00817.50
8.1.20.0050.00517.55
8.1.10.0080.00017.44
8.1.00.0060.00317.41
8.0.300.0000.00818.77
8.0.290.0080.00016.75
8.0.280.0000.00718.44
8.0.270.0000.00717.16
8.0.260.0030.00317.27
8.0.250.0070.00016.97
8.0.240.0030.00516.87
8.0.230.0030.00317.03
8.0.220.0070.00016.86
8.0.210.0000.00716.89
8.0.200.0030.00316.82
8.0.190.0050.00316.92
8.0.180.0000.00816.84
8.0.170.0040.00416.92
8.0.160.0070.00016.91
8.0.150.0000.00716.84
8.0.140.0070.00016.92
8.0.130.0030.00313.40
8.0.120.0030.00516.76
8.0.110.0000.00716.96
8.0.100.0070.00016.76
8.0.90.0030.00316.85
8.0.80.0050.01116.90
8.0.70.0070.00016.86
8.0.60.0000.00716.88
8.0.50.0030.00316.93
8.0.30.0120.00517.06
8.0.20.0110.01117.40
8.0.10.0040.00417.01
8.0.00.0110.00716.81
7.4.330.0030.00315.55
7.4.320.0030.00316.49
7.4.300.0060.00016.52
7.4.290.0070.00016.61
7.4.280.0000.00816.61
7.4.270.0000.00616.61
7.4.260.0020.00516.41
7.4.250.0040.00416.46
7.4.240.0050.00316.51
7.4.230.0000.00716.39
7.4.220.0000.00716.48
7.4.210.0080.00816.63
7.4.200.0070.00016.64
7.4.160.0090.00716.54
7.4.140.0100.00917.86
7.4.130.0100.00616.64
7.4.120.0100.01116.43
7.4.110.0000.01816.42
7.4.100.0090.00616.44
7.4.90.0090.00916.35
7.4.80.0100.01019.39
7.4.70.0150.00616.44
7.4.60.0030.01216.29
7.4.50.0090.00616.45
7.4.40.0070.01016.48
7.4.10.0040.01416.65
7.4.00.0070.01015.66
7.3.330.0020.00213.13
7.3.320.0030.00313.26
7.3.310.0000.00716.48
7.3.300.0030.00316.23
7.3.290.0030.00316.31
7.3.280.0080.00616.33
7.3.260.0110.00716.47
7.3.240.0110.00716.42
7.3.230.0150.00316.46
7.3.210.0090.01516.39
7.3.200.0110.00616.40
7.3.190.0130.00716.36
7.3.180.0110.00616.20
7.3.170.0140.00516.27
7.3.160.0030.01316.38
7.3.130.0090.00916.62
7.3.120.0100.00616.44
7.3.110.0030.01216.58
7.3.100.0030.01016.54
7.3.90.0070.01116.21
7.3.80.0030.01216.27
7.3.70.0030.01416.27
7.3.60.0070.01416.31
7.3.50.0100.00316.36
7.3.40.0080.00816.29
7.3.30.0090.00916.25
7.3.20.0040.01418.16
7.3.10.0090.00618.12
7.3.00.0070.00718.19
7.2.330.0090.01016.41
7.2.320.0120.00616.49
7.2.310.0090.00616.53
7.2.300.0090.01016.55
7.2.290.0130.00616.55
7.2.260.0070.00716.66
7.2.250.0030.01316.57
7.2.240.0060.01016.69
7.2.230.0040.01116.59
7.2.220.0080.00816.47
7.2.210.0040.01416.38
7.2.200.0040.01416.55
7.2.190.0040.01516.34
7.2.180.0070.00716.57
7.2.170.0090.00616.55
7.2.160.0040.01416.57
7.2.150.0120.00618.29
7.2.140.0030.01218.26
7.2.130.0070.00718.38
7.2.120.0070.01018.39
7.2.110.0030.00718.43
7.2.100.0030.01018.37
7.2.90.0030.01218.29
7.2.80.0090.00918.46
7.2.70.0000.01218.24
7.2.60.0150.00816.59
7.2.50.0130.01116.66
7.2.40.0080.01016.61
7.2.30.0120.00716.79
7.2.20.0150.00416.80
7.2.10.0130.00916.68
7.2.00.0170.00216.51
7.1.330.0070.00717.58
7.1.320.0090.00617.38
7.1.310.0000.00917.52
7.1.300.0100.00617.32
7.1.290.0120.00317.33
7.1.280.0040.00417.37
7.1.270.0130.00317.23
7.1.260.0060.00617.26
7.1.250.0040.01117.25
7.1.240.0040.01117.33
7.1.230.0030.00917.21
7.1.220.0000.01317.25
7.1.210.0030.01217.18
7.1.200.0100.00316.61
7.1.190.0000.01417.30
7.1.180.0070.00417.44
7.1.170.0120.01115.42
7.1.160.0230.00715.72
7.1.150.0150.00515.54
7.1.140.0120.00615.45
7.1.130.0010.01115.57
7.1.120.0100.01015.51
7.1.110.0090.01215.58
7.1.100.0090.01115.50
7.1.90.0140.00715.56
7.1.80.0100.00815.68
7.1.70.0120.00615.62
7.1.60.0310.00324.66
7.1.50.0230.01524.59
7.1.40.0190.01224.60
7.1.30.0250.00624.64
7.1.20.0160.01424.61
7.1.10.0150.00915.48
7.1.00.0150.00615.45
7.0.330.0040.01217.16
7.0.320.0060.00616.84
7.0.310.0110.00417.19
7.0.300.0130.00316.90
7.0.290.0070.00316.91
7.0.280.0070.00717.05
7.0.270.0090.00617.00
7.0.260.0040.01416.96
7.0.250.0110.00717.07
7.0.240.0090.00616.96
7.0.230.0090.00316.84
7.0.220.0070.00717.00
7.0.210.0070.00716.84
7.0.200.0060.00317.23
7.0.190.0030.00617.06
7.0.180.0060.00617.03
7.0.170.0080.00416.92
7.0.160.0030.00717.07
7.0.150.0030.01416.76
7.0.140.0000.00917.18
7.0.130.0030.01117.00
7.0.120.0070.01016.98
7.0.110.0030.00916.96
7.0.100.0080.00317.04
7.0.90.0030.00717.14
7.0.80.0040.01116.76
7.0.70.0060.01017.06
7.0.60.0000.01017.09
7.0.50.0030.00616.98
7.0.40.0040.00814.75
7.0.30.0090.00615.18
7.0.20.0030.00914.84
7.0.10.0070.00314.75
7.0.00.0070.00415.06
5.6.400.0090.00315.75
5.6.390.0000.01115.73
5.6.380.0070.01116.00
5.6.370.0030.00615.77
5.6.360.0100.01015.96
5.6.350.0030.01415.86
5.6.340.0060.00615.58
5.6.330.0080.00615.91
5.6.320.0060.00315.98
5.6.310.0060.00616.05
5.6.300.0040.01115.96
5.6.290.0030.01316.01
5.6.280.0000.01415.83
5.6.270.0070.01015.85
5.6.260.0160.00015.66
5.6.250.0080.00815.89
5.6.240.0040.01115.81
5.6.230.0070.01015.80
5.6.220.0030.01315.84
5.6.210.0000.01015.67
5.6.200.0090.00615.78
5.6.190.0000.01315.86
5.6.180.0090.00615.75
5.6.170.0030.00916.13
5.6.160.0040.00815.85
5.6.150.0000.01115.53
5.6.140.0030.01015.63
5.6.130.0070.00716.03
5.6.120.0050.00516.05
5.6.110.0030.00915.77
5.6.100.0030.00715.83
5.6.90.0000.01115.89
5.6.80.0060.00615.65
5.6.70.0000.01415.74
5.6.60.0000.01415.74
5.6.50.0100.00315.77
5.6.40.0070.00415.84
5.6.30.0040.00815.68
5.6.20.0070.00315.95
5.6.10.0040.01215.71
5.6.00.0140.00015.86

preferences:
64.04 ms | 400 KiB | 5 Q