3v4l.org

run code in 300+ PHP versions simultaneously
<?php $badthings = [ "`", "<", ">", "()"]; $input="Ciao< come va?'"; foreach ($badthings as $key => $badthing) { if((int)strpos($input, $badthing) > -1){ str_replace($badthing, "", $input); } } echo $input; ?>

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.0120.00318.28
8.3.50.0110.00418.02
8.3.40.0040.01118.90
8.3.30.0100.00618.68
8.3.20.0070.00021.69
8.3.10.0000.00721.95
8.3.00.0040.00419.52
8.2.180.0180.00016.63
8.2.170.0000.01422.96
8.2.160.0070.00721.05
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00319.14
8.2.120.0040.00426.35
8.2.110.0030.00620.47
8.2.100.0070.00417.72
8.2.90.0030.00517.75
8.2.80.0060.00318.73
8.2.70.0000.00817.80
8.2.60.0040.00417.93
8.2.50.0000.01018.10
8.2.40.0040.00420.34
8.2.30.0000.00719.23
8.2.20.0000.00817.98
8.2.10.0030.00618.18
8.2.00.0000.00919.91
8.1.280.0130.00725.92
8.1.270.0080.00023.79
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0060.00319.05
8.1.230.0060.00617.64
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00817.36
8.1.190.0000.00817.23
8.1.180.0090.00018.10
8.1.170.0030.00618.64
8.1.160.0050.00218.95
8.1.150.0000.00720.86
8.1.140.0030.00517.65
8.1.130.0050.00318.92
8.1.120.0000.00717.37
8.1.110.0000.00817.39
8.1.100.0000.00817.49
8.1.90.0030.00517.48
8.1.80.0000.01017.44
8.1.70.0040.00417.36
8.1.60.0080.00017.59
8.1.50.0070.00017.44
8.1.40.0040.00417.54
8.1.30.0040.00417.69
8.1.20.0000.00817.61
8.1.10.0050.00317.47
8.1.00.0050.00317.37
8.0.300.0060.00318.77
8.0.290.0050.00316.75
8.0.280.0000.00718.44
8.0.270.0030.00317.12
8.0.260.0060.00017.13
8.0.250.0070.00016.92
8.0.240.0030.00416.97
8.0.230.0060.00316.84
8.0.220.0070.00016.92
8.0.210.0030.00316.77
8.0.200.0000.00716.86
8.0.190.0000.00716.99
8.0.180.0000.00716.88
8.0.170.0030.00616.81
8.0.160.0040.00416.80
8.0.150.0000.00816.74
8.0.140.0070.00016.86
8.0.130.0000.00513.33
8.0.120.0040.00416.85
8.0.110.0050.00216.79
8.0.100.0000.00716.88
8.0.90.0000.00716.77
8.0.80.0100.01116.89
8.0.70.0000.00716.84
8.0.60.0050.00216.93
8.0.50.0040.00416.75
8.0.30.0080.01017.22
8.0.20.0080.01017.40
8.0.10.0050.00217.07
8.0.00.0120.00516.68
7.4.330.0050.00016.79
7.4.320.0060.00016.54
7.4.300.0060.00016.50
7.4.290.0000.00716.52
7.4.280.0060.00316.54
7.4.270.0040.00416.43
7.4.260.0070.00016.53
7.4.250.0040.00416.39
7.4.240.0070.00016.52
7.4.230.0000.00716.68
7.4.220.0040.00416.63
7.4.210.0090.00616.56
7.4.200.0030.00316.38
7.4.160.0090.00816.48
7.4.140.0110.00817.86
7.4.130.0070.01116.37
7.4.120.0110.00516.46
7.4.110.0080.00816.37
7.4.100.0030.01416.54
7.4.90.0070.01016.63
7.4.80.0150.00319.39
7.4.70.0120.00616.59
7.4.60.0100.01316.42
7.4.50.0030.01416.50
7.4.40.0120.00416.34
7.4.00.0030.00714.91
7.3.330.0000.00513.17
7.3.320.0000.00512.99
7.3.310.0070.00016.22
7.3.300.0040.00416.11
7.3.290.0030.00316.25
7.3.280.0090.00716.20
7.3.260.0030.01616.43
7.3.240.0090.01016.48
7.3.230.0080.00916.54
7.3.210.0080.01516.49
7.3.200.0130.00316.35
7.3.190.0000.01616.28
7.3.180.0030.01316.34
7.3.170.0060.00916.20
7.3.160.0100.00716.64
7.2.330.0080.00916.36
7.2.320.0080.01516.33
7.2.310.0170.00416.40
7.2.300.0180.00016.71
7.2.290.0040.01316.68
7.2.60.0290.00016.37
7.2.40.1630.01417.98
7.2.30.1730.00917.96
7.2.20.1630.01018.20
7.2.10.1660.01117.61
7.2.00.2110.00917.81
7.1.200.0030.01015.68
7.1.160.1430.01216.92
7.1.150.1800.01016.91
7.1.140.1510.01116.68
7.1.130.1970.00917.19
7.1.120.1150.01117.00
7.1.110.1940.01016.34
7.1.100.1750.01316.29
7.1.90.1670.00716.36
7.1.80.1530.01416.30
7.1.70.1460.00915.46
7.1.60.1980.01333.25
7.1.50.1400.01133.09
7.1.40.1530.01732.69
7.1.30.1140.01332.47
7.1.20.1410.01332.72
7.1.10.1730.01514.84
7.1.00.0990.01114.98

preferences:
57.93 ms | 401 KiB | 5 Q