3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ATENÇÃO: O produto será revisado e constatado o defeito será"; $remover = array ("ATENÇÃO:","será"); echo $texto = str_replace("$remover","",$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.4.10.0110.00017.90
8.3.140.0070.01117.31
8.3.130.0030.00618.46
8.3.120.0060.00320.72
8.3.110.0130.00020.94
8.3.100.0090.00024.06
8.3.90.0000.00826.77
8.3.80.0000.00916.63
8.3.70.0070.00716.61
8.3.60.0120.00918.68
8.3.50.0110.01021.98
8.3.40.0110.00418.56
8.3.30.0090.00618.63
8.3.20.0070.00021.78
8.3.10.0000.00720.16
8.3.00.0040.00420.91
8.2.250.0040.00418.36
8.2.240.0040.00817.28
8.2.230.0000.00822.58
8.2.220.0070.00337.54
8.2.210.0110.00726.77
8.2.200.0030.00618.16
8.2.190.0210.00016.63
8.2.180.0180.00325.92
8.2.170.0140.00318.95
8.2.160.0100.00322.96
8.2.150.0060.00324.18
8.2.140.0090.00324.66
8.2.130.0050.00326.16
8.2.120.0060.00319.30
8.2.110.0030.00720.99
8.2.100.0080.00418.03
8.2.90.0050.00319.26
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0050.00220.91
8.2.20.0050.00218.05
8.2.10.0080.00018.11
8.2.00.0040.00418.26
8.1.300.0120.00420.20
8.1.290.0090.00330.84
8.1.280.0160.00325.92
8.1.270.0000.00823.74
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00919.21
8.1.230.0090.00317.79
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00517.22
8.1.180.0090.00018.10
8.1.170.0070.00018.58
8.1.160.0070.00018.86
8.1.150.0000.00820.21
8.1.140.0000.00819.44
8.1.130.0000.00717.40
8.1.120.0000.00817.28
8.1.110.0100.00017.38
8.1.100.0030.00517.29
8.1.90.0080.00017.27
8.1.80.0000.00717.34
8.1.70.0040.00417.34
8.1.60.0000.00717.58
8.1.50.0000.00817.41
8.1.40.0040.00417.53
8.1.30.0040.00417.65
8.1.20.0040.00417.52
8.1.10.0000.00817.46
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0040.00418.45
8.0.270.0000.00717.23
8.0.260.0000.00716.95
8.0.250.0030.00316.91
8.0.240.0040.00417.00
8.0.230.0000.00716.95
8.0.220.0030.00316.86
8.0.210.0070.00016.94
8.0.200.0060.00016.90
8.0.190.0040.00416.96
8.0.180.0040.00416.87
8.0.170.0000.00716.88
8.0.160.0050.00216.95
8.0.150.0000.00716.84
8.0.140.0000.00716.83
8.0.130.0060.00013.32
8.0.120.0070.00016.86
8.0.110.0000.00716.70
8.0.100.0000.00716.95
8.0.90.0070.00016.81
8.0.80.0120.00316.77
8.0.70.0020.00516.82
8.0.60.0000.00816.94
8.0.50.0000.00816.73
8.0.30.0140.00517.21
8.0.20.0100.00817.40
8.0.10.0080.00017.05
8.0.00.0060.01216.47
7.4.330.0060.00015.55
7.4.320.0000.00616.55
7.4.300.0030.00316.60
7.4.290.0040.00416.48
7.4.280.0050.00316.49
7.4.270.0040.00416.61
7.4.260.0040.00416.59
7.4.250.0000.00816.41
7.4.240.0000.00716.51
7.4.230.0000.00716.61
7.4.220.0070.01716.68
7.4.210.0090.00616.53
7.4.200.0030.00316.57
7.4.160.0060.01016.42
7.4.150.0070.01117.40
7.4.140.0090.00817.86
7.4.130.0100.00816.50
7.4.120.0100.00716.58
7.4.110.0060.01216.56
7.4.100.0040.01316.70
7.4.90.0070.01016.64
7.4.80.0000.01619.39
7.4.70.0060.00916.59
7.4.60.0080.00816.49
7.4.50.0040.01116.33
7.4.40.0070.01316.47
7.4.30.0030.01516.74
7.4.00.0090.00814.93
7.3.330.0040.00413.19
7.3.320.0050.00013.10
7.3.310.0030.00316.35
7.3.300.0030.00316.25
7.3.290.0030.00316.11
7.3.280.0070.01016.23
7.3.270.0030.01317.40
7.3.260.0150.00816.38
7.3.250.0120.00816.24
7.3.240.0090.00916.34
7.3.230.0030.01316.34
7.3.210.0100.00616.34
7.3.200.0160.00316.52
7.3.190.0140.00716.44
7.3.180.0030.01216.37
7.3.170.0100.00616.54
7.3.160.0100.00616.44
7.3.120.0050.01114.77
7.3.110.0050.01314.74
7.3.100.0080.00714.84
7.3.90.0030.00814.81
7.3.80.0060.00814.99
7.3.70.0060.00614.76
7.3.60.0040.00914.84
7.3.50.0100.00314.62
7.3.40.0050.00814.60
7.3.30.0040.00814.84
7.3.20.0060.00716.47
7.3.10.0020.01216.41
7.3.00.0060.00616.71
7.2.330.0080.01116.66
7.2.320.0120.00716.58
7.2.310.0070.01016.55
7.2.300.0060.01216.36
7.2.290.0030.01316.51
7.2.250.0080.01115.01
7.2.240.0070.01214.99
7.2.230.0080.00915.04
7.2.220.0020.01215.12
7.2.210.0030.01414.87
7.2.200.0010.01115.13
7.2.190.0030.01014.89
7.2.180.0080.00814.75
7.2.170.0040.00915.05
7.2.60.0110.00616.73
7.2.50.0130.00716.51
7.1.330.0070.00815.84
7.1.320.0050.00815.53
7.1.310.0080.00615.61
7.1.300.0080.00515.57
7.1.290.0000.01415.88
7.1.280.0050.00515.63
7.1.270.0070.00415.86
7.1.260.0100.00515.60
7.1.200.0000.01015.81
7.1.70.0050.00517.13
7.1.60.0130.00317.10
7.1.20.0730.06038.57
7.1.10.1200.06320.45
7.1.00.0730.06720.71
7.0.200.0000.00716.85
7.0.160.0630.06320.10
7.0.150.0570.07020.07
7.0.140.0930.05020.09
7.0.130.0730.06720.06
7.0.120.0700.06020.06
7.0.110.1100.05319.99
7.0.100.0670.05320.21
7.0.90.1100.05320.14
7.0.80.0670.05720.18
7.0.70.0870.06720.11
7.0.60.0630.06719.84
7.0.50.0570.07720.14
7.0.40.0930.08720.10
7.0.30.0600.06020.05
7.0.20.0630.05720.04
7.0.10.0600.05320.12
7.0.00.0770.04720.13

preferences:
18.08 ms | 403 KiB | 5 Q