3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "Sc\reen S/hot 20'14-05-19 at 14.21.22"; //preg_match('/([a-z0-9\-\.]+)/i', , $input); $input = strip_slashes($input); var_dump($input); //$filename = str_replace(["\n", "\r", "\t", '/', '\'', ' '], '_', $input); //var_dump($filename);

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.0140.00718.45
8.3.50.0080.00821.93
8.3.40.0140.00718.93
8.3.30.0030.01219.09
8.3.20.0050.00320.21
8.3.10.0000.00921.93
8.3.00.0000.00822.44
8.2.180.0130.00318.38
8.2.170.0140.00422.96
8.2.160.0140.00020.83
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.50
8.2.110.0130.00320.53
8.2.100.0080.00317.84
8.2.90.0090.00019.05
8.2.80.0030.00617.97
8.2.70.0040.00417.34
8.2.60.0000.00717.92
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00418.00
8.2.20.0040.00417.69
8.2.10.0030.00519.47
8.2.00.0070.00017.80
8.1.280.0060.00925.92
8.1.270.0050.00322.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00420.93
8.1.230.0000.01117.42
8.1.220.0050.00317.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0070.00017.53
8.1.180.0040.00418.72
8.1.170.0000.00818.66
8.1.160.0040.00421.82
8.1.150.0040.00418.62
8.1.140.0030.00317.30
8.1.130.0000.00717.80
8.1.120.0070.00017.26
8.1.110.0040.00417.27
8.1.100.0040.00417.29
8.1.90.0000.00717.29
8.1.80.0080.00017.30
8.1.70.0000.00717.29
8.1.60.0030.00517.41
8.1.50.0000.00817.41
8.1.40.0000.00717.55
8.1.30.0080.00017.46
8.1.20.0040.00417.63
8.1.10.0040.00417.68
8.1.00.0050.00217.34
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0040.00418.30
8.0.270.0030.00317.25
8.0.260.0070.00016.77
8.0.250.0000.00716.86
8.0.240.0040.00416.92
8.0.230.0040.00416.84
8.0.220.0030.00316.88
8.0.210.0040.00316.92
8.0.200.0060.00016.95
8.0.190.0040.00416.96
8.0.180.0030.00316.81
8.0.170.0000.00916.84
8.0.160.0040.00416.91
8.0.150.0000.00816.88
8.0.140.0040.00416.82
8.0.130.0000.00713.41
8.0.120.0060.00316.77
8.0.110.0040.00416.85
8.0.100.0000.00816.78
8.0.90.0000.00716.80
8.0.80.0050.01016.94
8.0.70.0000.00816.71
8.0.60.0000.00816.96
8.0.50.0040.00416.76
8.0.30.0090.00817.08
8.0.20.0100.00717.40
8.0.10.0070.00016.90
8.0.00.0080.01016.66
7.4.330.0020.00215.00
7.4.320.0030.00316.38
7.4.300.0030.00316.65
7.4.290.0030.00516.59
7.4.280.0090.00016.49
7.4.270.0040.00416.53
7.4.260.0030.00316.48
7.4.250.0000.00816.47
7.4.240.0050.00216.62
7.4.230.0030.00316.60
7.4.220.0150.00316.43
7.4.210.0080.00716.55
7.4.200.0000.00716.41
7.4.190.0070.00016.61
7.4.160.0120.00916.39
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0100.01316.65
7.4.120.0090.00916.46
7.4.110.0130.00316.54
7.4.100.0170.00716.43
7.4.90.0100.00716.52
7.4.80.0140.00719.39
7.4.70.0040.01216.64
7.4.60.0100.00716.54
7.4.50.0040.00416.37
7.4.40.0020.00822.77
7.4.30.0160.00016.37
7.4.00.0110.00414.54
7.3.330.0030.00313.06
7.3.320.0050.00013.17
7.3.310.0030.00516.40
7.3.300.0030.00316.27
7.3.290.0100.00416.21
7.3.280.0070.00916.30
7.3.270.0100.00717.40
7.3.260.0100.01316.22
7.3.250.0110.00916.26
7.3.240.0130.00316.50
7.3.230.0060.00916.39
7.3.210.0090.01416.55
7.3.200.0130.00419.39
7.3.190.0060.01216.39
7.3.180.0120.00316.50
7.3.170.0090.00616.27
7.3.160.0030.01316.50
7.3.120.0070.01014.82
7.2.330.0070.01116.50
7.2.320.0090.01916.46
7.2.310.0170.00716.23
7.2.300.0120.00616.52
7.2.290.0120.00916.25
7.2.80.0060.00616.57
7.2.60.0000.01616.87
7.2.00.0030.00919.23
7.1.200.0030.00615.17
7.1.100.0000.01118.04
7.1.70.0040.00417.14
7.1.60.0070.01419.82
7.1.50.0150.00616.83
7.1.00.0030.07322.35
7.0.200.0060.00616.60
7.0.140.0070.06721.98
7.0.60.0030.06719.89
7.0.50.0070.04017.81
7.0.40.0170.07320.12
7.0.30.0270.08320.17
7.0.20.0300.07720.12
7.0.10.0100.05720.00
7.0.00.0030.07020.09
5.6.280.0130.06321.09
5.6.210.0100.07720.47
5.6.200.0030.08318.17
5.6.190.0030.08320.49
5.6.180.3330.04020.67
5.6.170.0300.06320.50
5.6.160.0030.06020.33
5.6.150.0070.08018.08
5.6.140.0070.03718.19
5.6.130.0100.07718.14
5.6.120.0030.08320.99
5.6.110.0070.08721.12
5.6.100.0100.08321.01
5.6.90.0070.04020.87
5.6.80.0000.04320.33
5.6.70.4570.02720.49
5.5.350.0200.08320.43
5.5.340.0000.05718.02
5.5.330.0030.07720.37
5.5.320.3600.04020.41
5.5.310.0200.09020.32
5.5.300.0100.08017.98
5.5.290.0030.05017.91
5.5.280.0130.07720.79
5.5.270.0030.06020.75
5.5.260.0170.06720.88
5.5.250.0030.07320.56
5.5.240.0130.04720.34
5.4.450.0500.05019.41
5.4.440.0770.04319.41
5.4.430.0130.07319.50
5.4.420.0200.04719.15
5.4.410.0130.05019.41
5.4.400.1430.00018.60
5.4.390.1670.00018.70
5.4.380.0300.05018.46
5.4.370.0830.05318.52
5.4.360.0570.06018.70
5.4.350.0730.06018.62
5.4.340.1170.04718.58
5.4.320.0070.03612.45
5.4.310.0060.05212.45
5.4.300.0050.03712.45
5.4.290.0130.03912.45
5.4.280.0070.05912.32
5.4.270.0110.05112.32
5.4.260.0120.05812.32
5.4.250.0080.06612.32
5.4.240.0100.06112.32
5.4.230.0110.06212.31
5.4.220.0140.07112.31
5.4.210.0100.07612.31
5.4.200.0060.04812.31
5.4.190.0060.06212.31
5.4.180.0100.06012.30
5.4.170.0090.05912.32
5.4.160.0230.06212.32
5.4.150.0110.03812.31
5.4.140.0080.03712.00
5.4.130.0060.05011.98
5.4.120.0150.05611.94
5.4.110.0080.05911.94
5.4.100.0100.04611.93
5.4.90.0080.03911.94
5.4.80.0050.05411.93
5.4.70.0100.04011.93
5.4.60.0070.04311.93
5.4.50.0100.05611.93
5.4.40.0050.04611.92
5.4.30.0050.03811.92
5.4.20.0040.03911.92
5.4.10.0140.04311.92
5.4.00.0080.03411.41
5.3.290.0070.04312.80
5.3.280.0110.04112.71
5.3.270.0070.04912.72
5.3.260.0080.05112.72
5.3.250.0080.06212.72
5.3.240.0080.05712.72
5.3.230.0080.05312.71
5.3.220.0120.05312.68
5.3.210.0080.06812.68
5.3.200.0100.03312.68
5.3.190.0140.04312.68
5.3.180.0090.05112.67
5.3.170.0040.05612.67
5.3.160.0050.05512.68
5.3.150.0080.06112.67
5.3.140.0100.04912.66
5.3.130.0130.07112.65
5.3.120.0080.06612.66
5.3.110.0110.06012.66
5.3.100.0040.05312.12
5.3.90.0120.04912.08
5.3.80.0110.05612.07
5.3.70.0140.07012.07
5.3.60.0150.07212.06
5.3.50.0050.06012.00
5.3.40.0110.05112.00
5.3.30.0030.04211.94
5.3.20.0050.03711.70
5.3.10.0060.03611.66
5.3.00.0060.03711.66
5.2.170.0050.0319.14
5.2.160.0080.0269.15
5.2.150.0030.0329.15
5.2.140.0090.0259.15
5.2.130.0040.0329.11
5.2.120.0030.0299.11
5.2.110.0050.0289.11
5.2.100.0020.0319.11
5.2.90.0030.0319.11
5.2.80.0050.0309.11
5.2.70.0040.0349.10
5.2.60.0060.0329.05
5.2.50.0060.0359.03
5.2.40.0040.0449.00
5.2.30.0060.0328.98
5.2.20.0020.0328.96
5.2.10.0070.0268.90
5.2.00.0030.0318.75
5.1.60.0050.0248.04
5.1.50.0060.0248.04
5.1.40.0050.0258.02
5.1.30.0070.0258.37
5.1.20.0050.0278.39
5.1.10.0050.0268.12
5.1.00.0070.0248.11
5.0.50.0100.0426.59
5.0.40.0110.0546.46
5.0.30.0060.0926.26
5.0.20.0100.0426.24
5.0.10.0100.0376.22
5.0.00.0060.0306.20
4.4.90.0010.0174.78
4.4.80.0040.0134.76
4.4.70.0020.0164.76
4.4.60.0030.0184.75
4.4.50.0100.0324.77
4.4.40.0010.0264.71
4.4.30.0040.0144.76
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0020.0194.67
4.3.100.0020.0234.66
4.3.90.0040.0204.63
4.3.80.0040.0234.58
4.3.70.0010.0174.63
4.3.60.0030.0174.63
4.3.50.0020.0174.63
4.3.40.0050.0234.54
4.3.30.0020.0163.27
4.3.20.0020.0163.24
4.3.10.0020.0163.21
4.3.00.0030.0206.98

preferences:
42.46 ms | 401 KiB | 5 Q