3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'HDO Intranet — Futar.png'; $encoded = htmlentities($string); $encoded = str_replace(array('&mdash;'), array('-'), $encoded); $result = preg_replace('/&([a-z]{1})[a-z]+;/i', '$1', $encoded); echo $result;

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.40.0120.00319.04
8.3.30.0100.00318.70
8.3.20.0050.00320.39
8.3.10.0040.00423.48
8.3.00.0070.00319.23
8.2.170.0090.00622.96
8.2.160.0100.01020.52
8.2.150.0050.00324.18
8.2.140.0060.00624.66
8.2.130.0060.00326.16
8.2.120.0100.00722.27
8.2.110.0090.00021.88
8.2.100.0080.00817.78
8.2.90.0000.00819.23
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0080.00019.93
8.2.30.0000.00718.08
8.2.20.0040.00417.73
8.2.10.0050.00218.25
8.2.00.0000.00717.85
8.1.270.0090.00023.95
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.08
8.1.230.0070.00719.04
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0060.00317.23
8.1.180.0030.00619.01
8.1.170.0030.00918.49
8.1.160.0000.00721.89
8.1.150.0000.00818.66
8.1.140.0040.00417.52
8.1.130.0000.00717.86
8.1.120.0000.00717.39
8.1.110.0030.00617.52
8.1.100.0000.00717.53
8.1.90.0000.00717.43
8.1.80.0040.00417.52
8.1.70.0000.00717.50
8.1.60.0000.00917.54
8.1.50.0040.00417.49
8.1.40.0040.00417.62
8.1.30.0080.00017.60
8.1.20.0030.00617.69
8.1.10.0000.00817.64
8.1.00.0080.00017.45
8.0.300.0000.00818.77
8.0.290.0000.00817.05
8.0.280.0070.00018.46
8.0.270.0000.00717.32
8.0.260.0060.00017.27
8.0.250.0030.00317.11
8.0.240.0080.00016.99
8.0.230.0030.00316.96
8.0.220.0030.00517.01
8.0.210.0040.00416.86
8.0.200.0000.00816.94
8.0.190.0030.00517.04
8.0.180.0040.00416.97
8.0.170.0040.00417.02
8.0.160.0080.00016.93
8.0.150.0050.00216.81
8.0.140.0000.00716.98
8.0.130.0030.00813.36
8.0.120.0000.00816.89
8.0.110.0030.00616.98
8.0.100.0040.00416.92
8.0.90.0070.00016.88
8.0.80.0060.01017.03
8.0.70.0000.00717.02
8.0.60.0000.00716.93
8.0.50.0030.00317.01
8.0.30.0120.00717.33
8.0.20.0100.00917.40
8.0.10.0040.00416.99
8.0.00.0110.00916.85
7.4.330.0030.00315.01
7.4.320.0030.00316.64
7.4.300.0030.00316.64
7.4.290.0000.00716.72
7.4.280.0000.00716.71
7.4.270.0070.00016.73
7.4.260.0040.00416.54
7.4.250.0000.00716.54
7.4.240.0030.00516.72
7.4.230.0040.00416.64
7.4.220.0140.00316.70
7.4.210.0050.01016.75
7.4.200.0040.00416.65
7.4.190.0000.00816.71
7.4.160.0050.01016.53
7.4.150.0140.00317.40
7.4.140.0070.01017.86
7.4.130.0040.01416.60
7.4.120.0150.00716.82
7.4.110.0130.00616.71
7.4.100.0070.01016.59
7.4.90.0070.01416.71
7.4.80.0080.00819.39
7.4.70.0060.01216.73
7.4.60.0080.01116.65
7.4.50.0080.00016.27
7.4.40.0070.01016.58
7.4.30.0110.00616.59
7.4.00.0120.00314.89
7.3.330.0000.00513.18
7.3.320.0000.00613.16
7.3.310.0000.00816.42
7.3.300.0000.00716.39
7.3.290.0120.00616.46
7.3.280.0110.00616.32
7.3.270.0060.01217.40
7.3.260.0150.00616.41
7.3.250.0110.01116.62
7.3.240.0140.00316.67
7.3.230.0070.01016.49
7.3.210.0090.01216.45
7.3.200.0090.01319.39
7.3.190.0090.00916.77
7.3.180.0040.01116.80
7.3.170.0100.00716.61
7.3.160.0100.01316.59
7.3.120.0070.01014.62
7.3.10.0140.01016.39
7.3.00.0150.00916.23
7.2.330.0060.01216.63
7.2.320.0070.01416.86
7.2.310.0140.00716.80
7.2.300.0070.01016.65
7.2.290.0000.01816.74
7.2.130.0200.00016.84
7.2.120.0240.00016.52
7.2.110.0140.00916.39
7.2.100.0100.01016.16
7.2.90.0200.00316.79
7.2.80.0100.01016.72
7.2.70.0070.01116.76
7.2.60.0080.00816.67
7.2.50.0080.01616.51
7.2.40.0070.01116.23
7.2.30.0160.00016.23
7.2.20.0190.00816.86
7.2.10.0030.01216.50
7.2.00.0030.01018.15
7.1.250.0220.00015.56
7.1.200.0090.00315.86
7.1.100.0000.01218.42
7.1.70.0030.00617.43
7.1.60.0030.02219.46
7.1.50.0140.01117.30
7.1.00.0070.07322.43
7.0.200.0040.00416.96
7.0.140.0070.07021.95
7.0.60.0100.06719.85
7.0.50.0070.03717.79
7.0.40.0000.09320.06
7.0.30.0200.04720.02
7.0.20.0270.05720.21
7.0.10.0070.04020.18
7.0.00.0070.04320.21
5.6.280.0030.07021.14
5.6.210.0030.05720.52
5.6.200.0070.08718.18
5.6.190.0030.05720.43
5.6.180.0270.04020.64
5.6.170.0330.06720.48
5.6.160.0100.08320.42
5.6.150.0100.07018.12
5.6.140.0170.07018.12
5.6.130.0100.07318.18
5.6.120.0070.04321.11
5.6.110.0170.07321.03
5.6.100.0130.04320.97
5.6.90.0030.08720.96
5.6.80.0130.07320.52
5.5.350.3530.04320.44
5.5.340.0000.04017.92
5.5.330.0070.08720.43
5.5.320.0270.07720.28
5.5.310.0300.07720.30
5.5.300.0130.07017.98
5.5.290.0100.08318.00
5.5.280.0170.07320.79
5.5.270.0070.06020.75
5.5.260.0070.08320.75
5.5.250.0100.06320.46
5.5.240.0100.06720.14
5.4.450.0000.08319.41
5.4.440.0070.06019.45
5.4.430.0100.06019.46
5.4.420.0230.04719.27
5.4.410.0170.04719.52
5.4.400.0070.05719.15
5.4.390.0130.06319.17
5.4.380.0270.05718.53
5.4.370.0470.04718.59
5.4.360.0170.06318.59
5.4.350.0330.04718.69
5.4.340.0230.06318.46
5.4.320.0070.03512.45
5.4.310.0100.04112.45
5.4.300.0120.04512.45
5.4.290.0080.06712.44
5.4.280.0100.05812.34
5.4.270.0110.05112.34
5.4.260.0070.06412.34
5.4.250.0100.05712.34
5.4.240.0080.06212.34
5.4.230.0070.05712.33
5.4.220.0070.06712.33
5.4.210.0070.04012.33
5.4.200.0080.03912.33
5.4.190.0110.05112.33
5.4.180.0140.05312.32
5.4.170.0150.05912.34
5.4.160.0120.04512.34
5.4.150.0100.05012.33
5.4.140.0070.04912.02
5.4.130.0090.04912.00
5.4.120.0070.05511.96
5.4.110.0080.05211.95
5.4.100.0120.05111.96
5.4.90.0110.05311.96
5.4.80.0060.05211.96
5.4.70.0080.04511.95
5.4.60.0170.05911.95
5.4.50.0090.04711.95
5.4.40.0070.05411.94
5.4.30.0090.07511.94
5.4.20.0090.05511.94
5.4.10.0280.06811.94
5.4.00.0080.05011.43
5.3.290.0070.05412.80
5.3.280.0080.05612.71
5.3.270.0210.10812.72
5.3.260.0070.04112.72
5.3.250.0090.03812.72
5.3.240.0080.05112.71
5.3.230.0100.04912.71
5.3.220.0160.06612.68
5.3.210.0200.07912.68
5.3.200.0130.05112.68
5.3.190.0160.08312.67
5.3.180.0100.07512.67
5.3.170.0100.04412.67
5.3.160.0090.06012.68
5.3.150.0080.04712.68
5.3.140.0070.03812.66
5.3.130.0070.04012.66
5.3.120.0110.05212.66
5.3.110.0070.04612.66
5.3.100.0090.03812.12
5.3.90.0090.05112.08
5.3.80.0180.07312.08
5.3.70.0150.09712.07
5.3.60.0150.04612.06
5.3.50.0170.06912.00
5.3.40.0160.07012.01
5.3.30.0140.07111.96
5.3.20.0120.05111.73
5.3.10.0130.04811.70
5.3.00.0070.05011.69
5.2.170.0080.0339.19
5.2.160.0050.0329.19
5.2.150.0040.0519.19
5.2.140.0080.0439.18
5.2.130.0070.0429.15
5.2.120.0090.0469.15
5.2.110.0050.0299.15
5.2.100.0070.0309.15
5.2.90.0040.0339.14
5.2.80.0060.0429.15
5.2.70.0070.0349.15
5.2.60.0080.0309.10
5.2.50.0090.0359.07
5.2.40.0080.0399.05
5.2.30.0170.0539.03
5.2.20.0160.0649.02
5.2.10.0270.0458.92
5.2.00.0100.0538.78
5.1.60.0160.0328.06
5.1.50.0140.0448.06
5.1.40.0060.0268.05
5.1.30.0120.0468.39
5.1.20.0080.0428.41
5.1.10.0080.0458.14
5.1.00.0110.0278.14
5.0.50.0050.0426.62
5.0.40.0040.0306.48
5.0.30.0100.0416.29
5.0.20.0090.0296.26
5.0.10.0040.0316.24
5.0.00.0040.0366.23
4.4.90.0040.0144.78
4.4.80.0030.0164.76
4.4.70.0050.0144.75
4.4.60.0050.0254.75
4.4.50.0040.0164.77
4.4.40.0030.0274.71
4.4.30.0020.0174.76
4.4.20.0040.0154.85
4.4.10.0070.0124.85
4.4.00.0050.0264.76
4.3.110.0020.0244.67
4.3.100.0090.0164.67
4.3.90.0050.0144.64
4.3.80.0050.0294.58
4.3.70.0040.0214.63
4.3.60.0030.0224.63
4.3.50.0050.0174.63
4.3.40.0060.0314.54
4.3.30.0030.0223.29
4.3.20.0040.0153.26
4.3.10.0010.0223.23
4.3.00.0000.0277.24

preferences:
43.45 ms | 400 KiB | 5 Q