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\""; echo "<pre>$text</pre>"; foreach($StringToReplace as $String){ $text = str_replace($String,"",$text); } echo "<hr>"; echo "<pre>$text</pre>";

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.0080.00818.30
8.3.50.0140.00717.84
8.3.40.0120.00318.79
8.3.30.0120.00318.72
8.3.20.0040.00418.98
8.3.10.0040.00419.21
8.3.00.0080.00023.62
8.2.180.0110.01118.24
8.2.170.0000.01522.96
8.2.160.0150.00618.91
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00419.82
8.2.120.0040.00426.35
8.2.110.0030.00620.92
8.2.100.0110.00017.79
8.2.90.0030.00619.13
8.2.80.0040.00417.97
8.2.70.0000.00817.78
8.2.60.0080.00018.03
8.2.50.0080.00018.10
8.2.40.0060.00319.34
8.2.30.0040.00419.50
8.2.20.0030.00717.94
8.2.10.0080.00019.91
8.2.00.0030.00319.59
8.1.280.0110.00425.92
8.1.270.0000.00720.07
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.83
8.1.230.0120.00017.70
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00317.23
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0040.00418.71
8.1.160.0050.00218.90
8.1.150.0030.00518.81
8.1.140.0040.00417.66
8.1.130.0060.00019.02
8.1.120.0030.00617.48
8.1.110.0070.00317.48
8.1.100.0040.00417.52
8.1.90.0080.00017.52
8.1.80.0030.00517.38
8.1.70.0070.00017.37
8.1.60.0040.00717.52
8.1.50.0070.00317.41
8.1.40.0030.00517.51
8.1.30.0060.00317.73
8.1.20.0000.00817.55
8.1.10.0070.00017.46
8.1.00.0030.00517.43
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.46
8.0.270.0000.00717.27
8.0.260.0030.00317.30
8.0.250.0050.00316.88
8.0.240.0000.00716.94
8.0.230.0000.00716.88
8.0.220.0060.00316.94
8.0.210.0030.00316.82
8.0.200.0070.00016.93
8.0.190.0030.00516.89
8.0.180.0000.00816.84
8.0.170.0030.00516.93
8.0.160.0000.00716.90
8.0.150.0000.00716.83
8.0.140.0000.00716.92
8.0.130.0000.00513.29
8.0.120.0040.00416.82
8.0.110.0050.00316.80
8.0.100.0000.00716.94
8.0.90.0040.00416.89
8.0.80.0090.00716.83
8.0.70.0040.00416.78
8.0.60.0050.00216.85
8.0.50.0000.00716.78
8.0.30.0070.01217.08
8.0.20.0090.01117.40
8.0.10.0000.00717.07
8.0.00.0080.01216.91
7.4.330.0000.00715.55
7.4.320.0030.00316.59
7.4.300.0030.00316.61
7.4.290.0030.00316.52
7.4.280.0000.00716.65
7.4.270.0030.00416.56
7.4.260.0060.00016.43
7.4.250.0000.00716.47
7.4.240.0070.00016.57
7.4.230.0040.00416.50
7.4.220.0030.00516.56
7.4.210.0050.01216.53
7.4.200.0040.00416.72
7.4.160.0080.00916.47
7.4.140.0100.01117.86
7.4.130.0110.00616.55
7.4.120.0120.00816.54
7.4.110.0070.01116.61
7.4.100.0140.00316.41
7.4.90.0060.01016.55
7.4.80.0060.01219.39
7.4.70.0120.01216.52
7.4.60.0030.01316.46
7.4.50.0070.00716.32
7.4.40.0060.01216.32
7.4.00.0100.00014.90
7.3.330.0030.00313.18
7.3.320.0060.00013.07
7.3.310.0030.00316.34
7.3.300.0050.00316.31
7.3.290.0030.00316.31
7.3.280.0060.00816.30
7.3.260.0110.01016.44
7.3.240.0090.00816.43
7.3.230.0080.00816.55
7.3.210.0030.01616.47
7.3.200.0060.01316.53
7.3.190.0100.00916.35
7.3.180.0090.00616.42
7.3.170.0170.00016.30
7.3.160.0070.01016.50
7.2.330.0150.00316.77
7.2.320.0130.00616.72
7.2.310.0060.00916.40
7.2.300.0030.01316.67
7.2.290.0170.00716.74
7.2.60.0170.01014.99
7.2.50.0280.00615.01
7.2.40.0170.00714.78
7.2.30.0130.01015.14
7.2.20.0190.00915.12
7.2.10.0170.00615.05
7.2.00.0170.00615.13
7.1.200.0070.00715.77
7.1.170.0220.00813.95
7.1.160.0110.01113.92
7.1.150.0160.00713.88
7.1.140.0170.00413.98
7.1.130.0160.00814.05
7.1.120.0240.00313.74
7.1.110.0130.01113.67
7.1.100.0210.00313.72
7.1.90.0150.01113.92
7.1.80.0180.00714.04
7.1.70.0200.00713.85
7.1.60.0370.00631.70
7.1.50.0360.01032.04
7.1.40.0420.00731.77
7.1.30.0290.02031.89
7.1.20.0550.01131.98
7.1.10.0170.01113.80
7.1.00.0180.00614.06

preferences:
59.3 ms | 400 KiB | 5 Q