3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "ATENÇÃO: O produto será revisado e constatado o defeito será"; $remover = ["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.20.0070.01417.49
8.4.10.0040.00817.71
8.3.150.0040.01517.05
8.3.140.0080.00016.62
8.3.130.0000.00918.65
8.3.120.0060.00319.05
8.3.110.0100.00620.94
8.3.100.0120.00416.74
8.3.90.0040.00416.73
8.3.80.0070.00318.55
8.3.70.0100.01016.58
8.3.60.0110.01118.30
8.3.50.0150.00722.99
8.3.40.0040.01118.81
8.3.30.0140.00018.58
8.3.20.0070.00021.85
8.3.10.0000.00720.26
8.3.00.0000.00820.61
8.2.270.0060.00316.79
8.2.260.0040.00418.73
8.2.250.0030.00616.43
8.2.240.0060.00319.06
8.2.230.0040.00722.58
8.2.220.0150.00024.06
8.2.210.0100.00026.77
8.2.200.0090.00016.50
8.2.190.0070.00716.58
8.2.180.0060.00925.92
8.2.170.0140.00318.69
8.2.160.0130.00722.96
8.2.150.0070.00025.66
8.2.140.0030.00624.66
8.2.130.0070.00018.09
8.2.120.0040.00426.35
8.2.110.0070.00421.18
8.2.100.0110.00017.80
8.2.90.0040.00419.30
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00517.93
8.2.50.0030.00518.10
8.2.40.0030.00620.47
8.2.30.0050.00321.04
8.2.20.0030.00517.96
8.2.10.0040.00418.05
8.2.00.0070.00018.14
8.1.310.0100.00716.52
8.1.300.0080.00018.16
8.1.290.0070.00418.88
8.1.280.0130.00725.92
8.1.270.0040.00423.79
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0060.00617.53
8.1.220.0040.00417.80
8.1.210.0030.00618.77
8.1.200.0070.00417.22
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0050.00218.86
8.1.150.0030.00420.24
8.1.140.0040.00419.45
8.1.130.0030.00519.04
8.1.120.0030.00317.37
8.1.110.0030.00617.29
8.1.100.0040.00417.39
8.1.90.0040.00417.29
8.1.80.0000.00717.33
8.1.70.0070.00017.27
8.1.60.0000.00817.53
8.1.50.0000.00817.43
8.1.40.0040.00417.53
8.1.30.0000.00817.64
8.1.20.0080.00017.62
8.1.10.0000.00817.46
8.1.00.0000.00717.34
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0000.00718.39
8.0.270.0000.00717.20
8.0.260.0030.00317.16
8.0.250.0080.00017.01
8.0.240.0030.00616.84
8.0.230.0000.00616.75
8.0.220.0050.00316.70
8.0.210.0070.00016.71
8.0.200.0060.00016.86
8.0.190.0040.00416.91
8.0.180.0080.00016.80
8.0.170.0070.00016.75
8.0.160.0070.00016.91
8.0.150.0030.00316.65
8.0.140.0000.00716.68
8.0.130.0060.00013.23
8.0.120.0040.00416.84
8.0.110.0040.00416.63
8.0.100.0040.00416.78
8.0.90.0030.00616.67
8.0.80.0120.00316.80
8.0.70.0000.00716.66
8.0.60.0030.00516.70
8.0.50.0020.00516.73
8.0.30.0120.00517.02
8.0.20.0100.00817.40
8.0.10.0070.00016.74
8.0.00.0060.01216.64
7.4.330.0030.00315.55
7.4.320.0040.00416.43
7.4.300.0000.00616.44
7.4.290.0000.00616.44
7.4.280.0000.00816.28
7.4.270.0030.00316.40
7.4.260.0000.00716.51
7.4.250.0000.00816.48
7.4.240.0030.00316.45
7.4.230.0030.00316.31
7.4.220.0120.01216.55
7.4.210.0100.00516.55
7.4.200.0000.00716.50
7.4.160.0070.01116.35
7.4.150.0100.01017.40
7.4.140.0110.01017.86
7.4.130.0110.00716.47
7.4.120.0080.00916.49
7.4.110.0120.00616.57
7.4.100.0140.00316.43
7.4.90.0100.00616.50
7.4.80.0100.00619.39
7.4.70.0130.00316.34
7.4.60.0060.01016.37
7.4.50.0070.00316.55
7.4.40.0100.00916.50
7.4.30.0090.00616.32
7.4.00.0060.00614.68
7.3.330.0090.00013.05
7.3.320.0030.00313.05
7.3.310.0070.00015.96
7.3.300.0060.00016.04
7.3.290.0040.00416.03
7.3.280.0110.00616.13
7.3.270.0070.01017.40
7.3.260.0130.00616.15
7.3.250.0090.00816.18
7.3.240.0050.01416.38
7.3.230.0030.01316.42
7.3.210.0030.01316.05
7.3.200.0130.00316.13
7.3.190.0150.00316.34
7.3.180.0060.00916.19
7.3.170.0000.01516.34
7.3.160.0090.00716.30
7.2.330.0140.00316.50
7.2.320.0070.01716.67
7.2.310.0130.00316.51
7.2.300.0160.00016.61
7.2.290.0030.01416.45
7.2.60.0040.00816.88
7.1.200.0000.01115.79
7.1.70.0060.00316.72
7.1.60.0030.01416.63
7.1.20.0900.06338.45
7.1.10.1300.06720.37
7.1.00.0900.05320.61
7.0.200.0060.00616.83
7.0.160.0870.07320.02
7.0.150.0870.06020.04
7.0.140.0930.04720.06
7.0.130.0530.06020.11
7.0.120.0670.05320.04
7.0.110.0870.04720.09
7.0.100.0600.06720.16
7.0.90.0700.06020.08
7.0.80.1200.05720.17
7.0.70.0770.05020.11
7.0.60.0730.05020.16
7.0.50.0630.05020.23
7.0.40.0630.06320.12
7.0.30.0500.06320.03
7.0.20.0900.04720.12
7.0.10.0430.06020.09
7.0.00.0700.04320.09

preferences:
47.32 ms | 403 KiB | 5 Q