3v4l.org

run code in 300+ PHP versions simultaneously
<?php $targets = array('\\','/',':','*','?','"','<','>','|','-'); $replace = '_'; $samples = array( 'c:\Windows\win.com', '/chat/stackoverflow/com/rooms/11.php', 'I like goats' ); $results = array(); foreach ($samples as $s) { print $s."\n".str_replace($targets, $replace, $s)."\n\n"; }

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.0090.00616.50
8.3.50.0150.00817.54
8.3.40.0070.00718.72
8.3.30.0040.01118.72
8.3.20.0040.00418.65
8.3.10.0080.00020.54
8.3.00.0030.00719.26
8.2.180.0060.01216.38
8.2.170.0000.01422.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0030.00619.95
8.2.110.0060.00320.57
8.2.100.0070.00417.78
8.2.90.0040.00417.91
8.2.80.0040.00417.97
8.2.70.0040.00417.47
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0030.00518.16
8.2.30.0000.00718.03
8.2.20.0050.00217.58
8.2.10.0030.00517.68
8.2.00.0030.00617.57
8.1.280.0090.01225.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0070.00421.03
8.1.220.0050.00317.78
8.1.210.0080.00018.97
8.1.200.0060.00317.36
8.1.190.0000.00717.43
8.1.180.0060.00318.10
8.1.170.0040.00418.71
8.1.160.0000.00718.82
8.1.150.0000.00718.69
8.1.140.0000.01017.37
8.1.130.0040.00417.85
8.1.120.0040.00417.36
8.1.110.0050.00217.49
8.1.100.0030.00317.45
8.1.90.0030.00517.41
8.1.80.0000.00717.44
8.1.70.0050.00317.48
8.1.60.0080.00017.51
8.1.50.0000.00717.47
8.1.40.0000.00817.46
8.1.30.0030.00617.62
8.1.20.0000.00817.69
8.1.10.0000.00817.55
8.1.00.0030.00517.45
8.0.300.0000.00820.03
8.0.290.0040.00416.75
8.0.280.0070.00018.54
8.0.270.0030.00317.18
8.0.260.0040.00416.74
8.0.250.0040.00316.88
8.0.240.0080.00016.90
8.0.230.0000.00716.95
8.0.220.0000.00716.81
8.0.210.0030.00316.93
8.0.200.0000.00716.93
8.0.190.0060.00216.94
8.0.180.0050.00316.94
8.0.170.0030.00516.97
8.0.160.0070.00016.81
8.0.150.0030.00616.94
8.0.140.0080.00316.84
8.0.130.0000.00513.29
8.0.120.0000.00716.79
8.0.110.0040.00416.86
8.0.100.0020.00516.96
8.0.90.0040.00416.94
8.0.80.0070.00716.96
8.0.70.0040.00416.92
8.0.60.0040.00416.93
8.0.50.0070.00016.89
8.0.30.0090.00917.20
8.0.20.0100.00917.06
8.0.10.0000.00917.05
8.0.00.0090.00916.68
7.4.330.0060.00012.99
7.4.320.0000.00716.61
7.4.300.0040.00416.51
7.4.290.0000.00716.44
7.4.280.0070.00016.52
7.4.270.0030.00516.70
7.4.260.0050.00213.29
7.4.250.0060.00316.51
7.4.240.0000.00716.44
7.4.230.0070.00016.45
7.4.220.0170.00716.47
7.4.210.0060.01116.58
7.4.200.0030.00316.45
7.4.190.0040.00416.74
7.4.160.0040.01116.42
7.4.150.0120.00816.43
7.4.140.0100.01016.44
7.4.130.0070.01316.55
7.4.120.0050.01216.39
7.4.110.0080.00816.59
7.4.100.0150.00816.40
7.4.90.0060.01216.33
7.4.80.0160.00916.43
7.4.70.0150.00316.18
7.4.60.0030.01416.48
7.4.50.0000.00916.39
7.4.40.0070.00716.38
7.4.30.0070.01016.47
7.4.00.0070.01014.99
7.3.330.0030.00313.20
7.3.320.0030.00313.11
7.3.310.0030.00316.22
7.3.300.0000.00616.25
7.3.290.0090.00616.21
7.3.280.0050.01116.25
7.3.270.0130.00316.54
7.3.260.0110.00916.40
7.3.250.0130.00416.48
7.3.240.0090.00816.30
7.3.230.0190.00316.65
7.3.210.0160.00016.55
7.3.200.0140.00319.39
7.3.190.0130.00716.41
7.3.180.0070.01016.58
7.3.170.0100.00616.32
7.3.160.0090.00916.52
7.3.120.0030.01414.59
7.2.330.0110.00616.57
7.2.320.0000.01916.43
7.2.310.0160.00816.59
7.2.300.0140.00716.37
7.2.290.0060.01116.63
7.2.00.0030.01319.23
7.1.100.0000.00918.20
7.1.70.0050.00517.27
7.1.60.0060.01619.40
7.1.50.0070.01516.89
7.1.00.0030.07322.32
7.0.200.0030.00616.81
7.0.140.0030.07322.23
7.0.120.0070.07021.95
7.0.60.0100.03319.88
7.0.50.0100.07017.80
7.0.40.0030.07017.79
7.0.30.0130.06317.80
7.0.20.0030.07717.66
7.0.10.0130.07317.77
7.0.00.0030.05717.78
5.6.280.0070.07020.89
5.6.210.0030.06320.54
5.6.200.0100.05718.15
5.6.190.0030.04718.18
5.6.180.0030.06318.11
5.6.170.0130.08018.16
5.6.160.0030.08318.07
5.6.150.0100.06718.18
5.6.140.0030.04318.18
5.6.130.0070.04018.16
5.6.120.0100.06018.09
5.6.110.0070.08018.11
5.6.100.0070.06018.09
5.6.90.0030.08318.16
5.6.80.0030.04017.60
5.6.70.0030.04017.60
5.6.60.0030.08017.56
5.6.50.0100.07317.55
5.6.40.0000.08717.51
5.6.30.0130.07317.54
5.6.20.0130.04317.43
5.6.10.0030.08317.53
5.6.00.0130.07317.56
5.5.350.0100.06720.41
5.5.340.0130.04018.02
5.5.330.0070.03718.02
5.5.320.0100.07717.95
5.5.310.0070.09317.98
5.5.300.0000.04317.88
5.5.290.0100.07718.02
5.5.280.0100.04717.92
5.5.270.0200.03717.91
5.5.260.0100.06718.03
5.5.250.0030.05017.73
5.5.240.0070.03717.30
5.5.230.0000.06717.28
5.5.220.0100.06717.36
5.5.210.0100.07717.26
5.5.200.0100.07317.37
5.5.190.0070.05317.38
5.5.180.0070.07717.34
5.5.160.0100.07317.28
5.5.150.0030.04317.35
5.5.140.0070.03717.25
5.5.130.0070.04017.34
5.5.120.0100.07317.25
5.5.110.0070.04317.32
5.5.100.0130.07317.20
5.5.90.0070.03717.19
5.5.80.0100.03317.25
5.5.70.0070.03717.22
5.5.60.0130.03717.16
5.5.50.0070.06017.25
5.5.40.0030.06317.22
5.5.30.0070.05717.07
5.5.20.0100.05317.15
5.5.10.0100.03717.11
5.5.00.0070.08017.26
5.4.450.0100.03719.30
5.4.440.0000.05319.15
5.4.430.0030.06019.39
5.4.420.0100.07719.43
5.4.410.0070.03719.18
5.4.400.0070.04318.98
5.4.390.0030.07719.13
5.4.380.0070.04019.20
5.4.370.0170.07319.07
5.4.360.0100.08019.01
5.4.350.0070.07318.97
5.4.340.0130.07019.01
5.4.320.0030.05318.96
5.4.310.0070.07319.04
5.4.300.0000.04319.09
5.4.290.0030.04319.05
5.4.280.0070.04019.10
5.4.270.0000.05019.11
5.4.260.0070.04018.98
5.4.250.0030.05018.98
5.4.240.0130.03018.97
5.4.230.0030.04018.98
5.4.220.0000.07718.99
5.4.210.0030.05319.03
5.4.200.0030.08018.98
5.4.190.0070.08018.97
5.4.180.0130.05019.02
5.4.170.0070.07719.06
5.4.160.0030.08019.05
5.4.150.0070.07719.05
5.4.140.0070.05016.37
5.4.130.0000.04716.17
5.4.120.0100.07016.33
5.4.110.0000.04016.28
5.4.100.0030.04016.26
5.4.90.0070.07716.39
5.4.80.0070.04316.26
5.4.70.0130.06716.51
5.4.60.0070.04316.23
5.4.50.0070.04316.50
5.4.40.0100.06316.32
5.4.30.0130.06316.22
5.4.20.0030.04316.22
5.4.10.0100.07316.14
5.4.00.0130.06015.91
5.3.290.0070.08014.53
5.3.280.0030.05014.54
5.3.270.0030.04714.56
5.3.260.0070.08314.43
5.3.250.0100.05014.57
5.3.240.0030.08014.44
5.3.230.0130.04314.57
5.3.220.0070.08014.50
5.3.210.0100.06014.39
5.3.200.0070.04014.48
5.3.190.0070.07714.50
5.3.180.0070.07714.49
5.3.170.0100.07014.54
5.3.160.0030.04314.41
5.3.150.0100.08014.48
5.3.140.0070.06714.46
5.3.130.0000.07014.51
5.3.120.0030.08314.49
5.3.110.0170.07014.49
5.3.100.0030.07713.81
5.3.90.0100.04313.93
5.3.80.0100.03014.09
5.3.70.0000.04713.97
5.3.60.0000.03713.96
5.3.50.0070.03313.87
5.3.40.0000.04013.86
5.3.30.0070.03313.85
5.3.20.0070.03013.47
5.3.10.0030.04713.73
5.3.00.0070.03313.57
5.2.170.0030.02711.14
5.2.160.0070.03311.13
5.2.150.0030.02711.06
5.2.140.0030.02711.11
5.2.130.0000.03010.93
5.2.120.0030.02710.88
5.2.110.0030.02711.07
5.2.100.0070.02311.05
5.2.90.0000.03311.07
5.2.80.0000.03311.04
5.2.70.0070.04011.12
5.2.60.0000.03311.05
5.2.50.0000.06711.00
5.2.40.0030.05311.00
5.2.30.0070.03310.80
5.2.20.0000.03010.98
5.2.10.0030.02710.84
5.2.00.0030.02710.75
5.1.60.0030.02310.14
5.1.50.0000.0309.97
5.1.40.0070.02010.03
5.1.30.0030.02310.30
5.1.20.0030.03010.50
5.1.10.0030.02310.03
5.1.00.0000.02710.14
5.0.50.0030.0208.60
5.0.40.0030.0238.39
5.0.30.0030.0278.19
5.0.20.0000.0208.22
5.0.10.0030.0178.17
5.0.00.0000.0338.09
4.4.90.0000.0177.83
4.4.80.0070.0307.83
4.4.70.0000.0177.83
4.4.60.0000.0277.83
4.4.50.0030.0137.83
4.4.40.0030.0237.83
4.4.30.0030.0177.83
4.4.20.0000.0177.83
4.4.10.0000.0177.83
4.4.00.0000.0237.83
4.3.110.0000.0137.83
4.3.100.0030.0137.83
4.3.90.0000.0137.83
4.3.80.0000.0237.83
4.3.70.0070.0077.83
4.3.60.0000.0177.83
4.3.50.0000.0137.83
4.3.40.0000.0237.83
4.3.30.0000.0207.83
4.3.20.0000.0207.83
4.3.10.0000.0177.83
4.3.00.0000.0177.83

preferences:
33.07 ms | 401 KiB | 5 Q