3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isohtmlspecialchars($string){ if (version_compare(phpversion(), "5.4.0", ">=")) { echo "Hoger dan 5.4.0"; return htmlspecialchars($string, ENT_COMPAT | ENT_HTML401 , 'ISO-8859-1' ); } elseif (version_compare(phpversion(), "5.6.0", ">=")) { echo "hoger dan 5.6.0.": return htmlspecialchars($string); } else { echo "Lager dan 5.4.0"; return htmlspecialchars($string); } } echo isohtmlspecialchars("ë");

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)
5.4.350.0080.04412.03
5.4.340.0050.03712.03
5.4.320.0070.04512.52
5.4.310.0060.04312.52
5.4.300.0060.04512.52
5.4.290.0070.03612.51
5.4.280.0060.03712.41
5.4.270.0100.03212.41
5.4.260.0100.03512.41
5.4.250.0030.04112.41
5.4.240.0040.03812.41
5.4.230.0050.04012.40
5.4.220.0090.03812.40
5.4.210.0060.03912.40
5.4.200.0070.05012.40
5.4.190.0080.03912.39
5.4.180.0100.03712.39
5.4.170.0030.04112.40
5.4.160.0120.03512.40
5.4.150.0110.03312.39
5.4.140.0060.03712.09
5.4.130.0050.03712.07
5.4.120.0070.04012.03
5.4.110.0060.03712.03
5.4.100.0060.05012.04
5.4.90.0110.04812.03
5.4.80.0080.03712.03
5.4.70.0050.03712.03
5.4.60.0070.03512.02
5.4.50.0060.04412.03
5.4.40.0060.03512.02
5.4.30.0080.04512.01
5.4.20.0110.03512.00
5.4.10.0050.03512.01
5.4.00.0050.04111.50
5.3.290.0060.04312.80
5.3.280.0110.05012.71
5.3.270.0130.03712.72
5.3.260.0080.04012.71
5.3.250.0060.04112.71
5.3.240.0080.03612.72
5.3.230.0060.05212.71
5.3.220.0090.04312.68
5.3.210.0070.05312.68
5.3.200.0090.04512.68
5.3.190.0070.04112.68
5.3.180.0090.04712.67
5.3.170.0070.04412.67
5.3.160.0070.04112.68
5.3.150.0070.04312.68
5.3.140.0110.03312.66
5.3.130.0100.03712.66
5.3.120.0070.04012.66
5.3.110.0020.04512.66
5.3.100.0090.03912.13
5.3.90.0070.03612.11
5.3.80.0080.03712.09
5.3.70.0080.04212.09
5.3.60.0060.04712.08
5.3.50.0060.03612.03
5.3.40.0090.03812.02
5.3.30.0120.03611.98
5.3.20.0090.03611.77
5.3.10.0080.03411.73
5.3.00.0050.04011.72
5.2.170.0110.0429.22
5.2.160.0070.0409.22
5.2.150.0060.0419.22
5.2.140.0060.0319.21
5.2.130.0080.0269.18
5.2.120.0050.0349.18
5.2.110.0100.0329.19
5.2.100.0090.0349.18
5.2.90.0100.0399.18
5.2.80.0060.0419.18
5.2.70.0070.0389.18
5.2.60.0060.0319.13
5.2.50.0030.0409.10
5.2.40.0050.0329.08
5.2.30.0090.0369.05
5.2.20.0070.0409.04
5.2.10.0080.0378.95
5.2.00.0020.0348.81
5.1.60.0040.0308.10
5.1.50.0040.0278.09
5.1.40.0100.0298.07
5.1.30.0080.0338.42
5.1.20.0050.0358.44
5.1.10.0050.0318.16
5.1.00.0050.0328.17
5.0.50.0060.0246.64
5.0.40.0080.0246.50
5.0.30.0070.0386.32
5.0.20.0060.0206.28
5.0.10.0060.0226.26
5.0.00.0020.0416.25
4.4.90.0040.0164.78
4.4.80.0060.0134.75
4.4.70.0050.0174.75
4.4.60.0030.0174.75
4.4.50.0040.0154.77
4.4.40.0050.0264.71
4.4.30.0020.0204.76
4.4.20.0050.0184.85
4.4.10.0040.0204.85
4.4.00.0040.0264.76
4.3.110.0050.0164.67
4.3.100.0050.0174.66
4.3.90.0070.0174.64
4.3.80.0020.0264.58
4.3.70.0040.0174.63
4.3.60.0010.0184.63
4.3.50.0020.0184.63
4.3.40.0030.0274.54
4.3.30.0030.0183.31
4.3.20.0040.0163.29
4.3.10.0040.0163.24
4.3.00.0100.0277.66

preferences:
132.1 ms | 1398 KiB | 7 Q