3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tools = "<p>tools :<br> 1 Hex Key (or two Hex key)<br> 1 screww drivers<br> 1 hammer <br> 1 drill </p>"; $search = ['<p>','</p>','<br>', 'tools :']; //Add more words to be removed $filteredStr = str_replace($search, '',$tools); $res = explode(PHP_EOL,$filteredStr); array_shift($res); // Removing empty element at the beginning of array print_r($res);

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.140.0110.01117.47
8.4.130.0050.00319.32
8.4.120.0120.00722.13
8.4.110.0120.00822.32
8.4.100.0070.00317.72
8.4.90.0140.00718.71
8.4.80.0040.00517.70
8.4.70.0110.00817.59
8.4.60.0120.00819.07
8.4.50.0060.00319.36
8.4.40.0080.00019.18
8.4.30.0090.00922.09
8.4.20.0070.01318.53
8.4.10.0100.01019.36
8.3.270.0080.01116.54
8.3.260.0080.01216.57
8.3.250.0130.00619.02
8.3.240.0120.00816.41
8.3.230.0080.01016.54
8.3.220.0100.00919.01
8.3.210.0120.00616.59
8.3.200.0050.00416.43
8.3.190.0110.00916.36
8.3.180.0110.00716.46
8.3.170.0120.00616.57
8.3.160.0070.01117.20
8.3.150.0110.00717.04
8.3.140.0050.00316.37
8.3.130.0080.00018.14
8.3.120.0150.00320.72
8.3.110.0030.00620.94
8.3.100.0090.00024.06
8.3.90.0100.00626.77
8.3.80.0030.00917.97
8.3.70.0100.00716.50
8.3.60.0210.00016.25
8.3.50.0090.00517.94
8.3.40.0150.00718.45
8.3.30.0070.00718.31
8.3.20.0050.00220.81
8.3.10.0030.00620.53
8.3.00.0040.00420.98
8.2.290.0140.00520.16
8.2.280.0050.00318.15
8.2.270.0030.01519.02
8.2.260.0110.00716.60
8.2.250.0040.00416.71
8.2.240.0060.00318.75
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0030.00616.38
8.2.190.0210.00016.58
8.2.180.0120.00618.04
8.2.170.0110.00722.96
8.2.160.0100.00322.08
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00717.91
8.2.120.0080.00026.35
8.2.110.0120.00920.35
8.2.100.0120.00017.91
8.2.90.0000.00817.84
8.2.80.0030.00517.97
8.2.70.0030.00717.78
8.2.60.0040.00418.22
8.2.50.0030.00618.10
8.2.40.0000.00719.10
8.2.30.0000.00819.09
8.2.20.0050.00218.03
8.2.10.0000.00819.34
8.2.00.0000.00718.10
8.1.330.0100.00922.11
8.1.320.0130.00516.13
8.1.310.0100.00316.69
8.1.300.0080.00820.25
8.1.290.0090.00030.84
8.1.280.0060.00925.92
8.1.270.0080.00020.14
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.41
8.1.230.0080.00320.97
8.1.220.0040.00417.76
8.1.210.0070.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.10
8.1.180.0050.00518.10
8.1.170.0000.00818.60
8.1.160.0000.00718.68
8.1.150.0000.00718.88
8.1.140.0000.00720.31
8.1.130.0040.00420.27
8.1.120.0080.00317.42
8.1.110.0070.00017.42
8.1.100.0000.01017.43
8.1.90.0040.00417.38
8.1.80.0000.00717.26
8.1.70.0070.00017.35
8.1.60.0040.00417.44
8.1.50.0060.00317.50
8.1.40.0050.00317.38
8.1.30.0060.00317.52
8.1.20.0070.00417.58
8.1.10.0050.00217.52
8.1.00.0030.00717.44
8.0.300.0040.00419.75
8.0.290.0060.00316.58
8.0.280.0000.00718.31
8.0.270.0030.00317.18
8.0.260.0060.00018.37
8.0.250.0030.00316.92
8.0.240.0040.00416.93
8.0.230.0040.00416.78
8.0.220.0000.00716.84
8.0.210.0080.00016.71
8.0.200.0030.00516.89
8.0.190.0000.00816.90
8.0.180.0080.00016.71
8.0.170.0040.00716.86
8.0.160.0060.00316.80
8.0.150.0070.00016.73
8.0.140.0030.00316.71
8.0.130.0000.00613.27
8.0.120.0040.00416.68
8.0.110.0040.00416.87
8.0.100.0000.00816.71
8.0.90.0000.00716.82
8.0.80.0040.01216.73
8.0.70.0070.00016.76
8.0.60.0040.00416.69
8.0.50.0040.00416.69
8.0.30.0100.00716.96
8.0.20.0060.01517.40
8.0.10.0000.00716.83
8.0.00.0090.01316.68
7.4.330.0000.00515.55
7.4.320.0000.00616.54
7.4.300.0000.00716.53
7.4.290.0030.00316.48
7.4.280.0050.00316.42
7.4.270.0040.00416.40
7.4.260.0030.00316.56
7.4.250.0000.00816.35
7.4.240.0000.00816.55
7.4.230.0030.00516.32
7.4.220.0030.00516.58
7.4.210.0080.01016.54
7.4.200.0080.00016.62
7.4.160.0080.00816.39
7.4.140.0080.00817.86
7.4.130.0210.00316.34
7.4.120.0060.01316.43
7.4.110.0080.00916.40
7.4.100.0120.00616.24
7.4.90.0100.00716.20
7.4.80.0070.01619.39
7.4.70.0090.00916.36
7.4.60.0160.00016.38
7.4.50.0030.01016.10
7.4.40.0100.01016.55
7.4.00.0100.00314.97
7.3.330.0020.00213.01
7.3.320.0000.00512.97
7.3.310.0040.00416.10
7.3.300.0000.00716.13
7.3.290.0030.00316.19
7.3.280.0070.01016.05
7.3.260.0110.01016.16
7.3.240.0110.00716.19
7.3.230.0040.01216.50
7.3.210.0160.00016.13
7.3.200.0080.01216.42
7.3.190.0070.01316.50
7.3.180.0070.01116.32
7.3.170.0130.01016.30
7.3.160.0100.01016.23
7.3.20.0840.00614.73
7.3.10.0440.00614.64
7.3.00.0370.00314.32
7.2.330.0070.01016.46
7.2.320.0090.00616.55
7.2.310.0120.01016.58
7.2.300.0090.00616.34
7.2.290.0130.00516.58
7.2.150.0360.00415.01
7.2.140.0580.00314.72
7.2.130.0330.00414.65
7.2.120.0420.00315.01
7.2.110.0330.01015.05
7.2.100.0440.01414.94
7.2.90.0410.00814.93
7.2.80.0400.00014.85
7.2.70.0530.00314.91
7.2.60.0460.00615.09
7.2.50.0400.00614.92
7.2.40.0490.00614.96
7.2.30.0440.00314.88
7.2.20.0390.01314.97
7.2.10.0350.00614.99
7.2.00.0360.00614.72
7.1.250.0500.00613.63

preferences:
30.7 ms | 403 KiB | 5 Q