3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cleanstring($string) { $unwanted = array("’","'",";",".",":","’"); echo "cleaned: ".str_replace($unwanted, "", $string)."\n"; } $string = "Bob’s Burgers Season 1 Episode 1"; cleanstring($string); $string = "Bob's Burgers Season 2"; cleanstring($string);

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.0110.01116.50
8.3.50.0060.00818.18
8.3.40.0030.01018.59
8.3.30.0110.00718.72
8.3.20.0110.00320.20
8.3.10.0030.00523.63
8.3.00.0080.00019.13
8.2.180.0110.00417.92
8.2.170.0180.00322.96
8.2.160.0070.00720.17
8.2.150.0130.00624.18
8.2.140.0030.00524.66
8.2.130.0050.00317.63
8.2.120.0040.00426.35
8.2.110.0090.00022.01
8.2.100.0080.00317.72
8.2.90.0030.00617.63
8.2.80.0030.00518.75
8.2.70.0080.00017.50
8.2.60.0030.00718.04
8.2.50.0060.00318.07
8.2.40.0050.00318.22
8.2.30.0000.00717.94
8.2.20.0050.00517.69
8.2.10.0040.00418.06
8.2.00.0000.00718.02
8.1.280.0110.01125.92
8.1.270.0080.00024.02
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00617.35
8.1.230.0000.01220.85
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0040.00717.22
8.1.180.0030.00618.10
8.1.170.0130.00518.19
8.1.160.0040.00418.85
8.1.150.0080.00018.93
8.1.140.0070.00319.45
8.1.130.0000.00717.37
8.1.120.0040.00317.46
8.1.110.0000.00817.52
8.1.100.0000.00717.43
8.1.90.0080.00017.36
8.1.80.0000.00717.48
8.1.70.0030.00317.47
8.1.60.0000.00917.58
8.1.50.0030.00517.52
8.1.40.0040.00417.42
8.1.30.0040.00417.64
8.1.20.0030.00617.63
8.1.10.0040.00417.56
8.1.00.0030.00717.47
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0040.00420.22
8.0.270.0030.00317.17
8.0.260.0030.00316.77
8.0.250.0040.00417.02
8.0.240.0060.00316.96
8.0.230.0030.00316.92
8.0.220.0030.00316.91
8.0.210.0040.00316.91
8.0.200.0030.00316.95
8.0.190.0000.00816.89
8.0.180.0040.00416.80
8.0.170.0000.00716.91
8.0.160.0040.00416.91
8.0.150.0040.00716.94
8.0.140.0000.00716.83
8.0.130.0080.00013.28
8.0.120.0060.00316.79
8.0.110.0000.00816.80
8.0.100.0050.00216.93
8.0.90.0000.00816.83
8.0.80.0060.00916.89
8.0.70.0070.00016.75
8.0.60.0030.00516.78
8.0.50.0040.00416.83
8.0.30.0130.00217.37
8.0.20.0120.00717.40
8.0.10.0060.00316.90
8.0.00.0090.00916.80
7.4.330.0050.00016.67
7.4.320.0000.00716.46
7.4.300.0030.00316.58
7.4.290.0000.00816.56
7.4.280.0040.00316.59
7.4.270.0030.00316.44
7.4.260.0000.00716.56
7.4.250.0050.00216.48
7.4.240.0070.00016.63
7.4.230.0030.00316.57
7.4.220.0090.00916.45
7.4.210.0090.00616.63
7.4.200.0050.00216.63
7.4.160.0060.01016.39
7.4.150.0120.00617.40
7.4.140.0120.01117.86
7.4.130.0100.00816.59
7.4.120.0090.01216.60
7.4.110.0200.00316.47
7.4.100.0140.00916.47
7.4.90.0070.01016.59
7.4.80.0100.01319.39
7.4.70.0100.01016.63
7.4.60.0130.00316.42
7.4.50.0040.01116.30
7.4.40.0130.00316.35
7.4.30.0130.00316.53
7.4.00.0030.01214.88
7.3.330.0030.00313.23
7.3.320.0030.00313.10
7.3.310.0040.00416.15
7.3.300.0070.00016.10
7.3.290.0060.00916.23
7.3.280.0040.01316.25
7.3.270.0140.00317.40
7.3.260.0100.00716.63
7.3.250.0170.01316.29
7.3.240.0070.01216.37
7.3.230.0140.00316.54
7.3.210.0090.00916.15
7.3.200.0110.00716.44
7.3.190.0120.00316.23
7.3.180.0110.00716.52
7.3.170.0100.00716.59
7.3.160.0120.00616.58
7.2.330.0090.00916.64
7.2.320.0130.01016.68
7.2.310.0130.01016.38
7.2.300.0130.00316.43
7.2.290.0090.00916.54
7.2.60.0150.00016.80
7.2.00.0000.01219.02
7.1.200.0090.00315.43
7.1.100.0120.00818.15
7.1.70.0000.00817.03
7.1.60.0070.01119.36
7.1.50.0070.01416.89
7.1.00.0070.07322.46
7.0.200.0090.00016.64
7.0.60.0100.06319.91
7.0.50.0100.07717.83
7.0.40.0100.04320.05
7.0.30.0300.05020.21
7.0.20.0130.04720.21
7.0.10.0030.04720.16
7.0.00.0070.07320.08
5.6.280.0070.07020.87
5.6.210.0100.04020.55
5.6.200.0070.04318.29
5.6.190.0100.05320.48
5.6.180.0330.06720.48
5.6.170.0300.04720.58
5.6.160.0030.06720.54
5.6.150.0130.07718.24
5.6.140.0070.06718.15
5.6.130.0030.09018.14
5.6.120.0170.07321.15
5.6.110.0070.04021.03
5.6.100.0000.05021.00
5.6.90.0100.06321.11
5.6.80.0000.07320.37
5.5.350.0270.07320.38
5.5.340.0000.06717.98
5.5.330.0070.04320.44
5.5.320.0070.10320.24
5.5.310.0230.03720.30
5.5.300.0070.03717.94
5.5.290.0270.03317.96
5.5.280.0000.05320.80
5.5.270.0130.06320.75
5.5.260.0030.08720.64
5.5.250.0070.08020.65
5.5.240.0270.04020.37

preferences:
52.84 ms | 400 KiB | 5 Q