3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orig = "Qébeq; $a = htmlentities($orig); $b = html_entity_decode($a); echo $a; // I'll &quot;walk&quot; the &lt;b&gt;dog&lt;/b&gt; now echo $b; // I'll "walk" the <b>dog</b> now ?>

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.280.0060.05812.38
5.4.270.0120.05012.38
5.4.260.0050.04612.38
5.4.250.0090.04212.38
5.4.240.0080.04512.38
5.4.230.0090.04912.37
5.4.220.0100.04312.37
5.4.210.0090.04512.37
5.4.200.0090.04712.37
5.4.190.0100.04912.36
5.4.180.0100.04712.36
5.4.170.0090.04412.37
5.4.160.0060.04612.37
5.4.150.0070.04412.36
5.4.140.0070.04712.06
5.4.130.0080.04612.03
5.4.120.0050.04512.00
5.4.110.0070.04712.00
5.4.100.0090.05611.99
5.4.90.0100.04711.99
5.4.80.0070.04712.00
5.4.70.0100.04112.00
5.4.60.0080.04211.99
5.4.50.0070.04711.99
5.4.40.0100.04411.98
5.4.30.0080.05211.98
5.4.20.0130.04611.97
5.4.10.0070.04911.97
5.4.00.0100.04211.47
5.3.280.0090.04612.71
5.3.270.0080.04812.72
5.3.260.0070.05412.72
5.3.250.0090.04912.72
5.3.240.0070.04512.72
5.3.230.0050.04712.71
5.3.220.0090.04812.68
5.3.210.0110.05212.68
5.3.200.0100.06512.68
5.3.190.0090.04912.68
5.3.180.0120.06012.68
5.3.170.0070.04612.67
5.3.160.0090.04312.68
5.3.150.0090.04912.68
5.3.140.0070.05012.66
5.3.130.0110.05812.66
5.3.120.0120.05412.66
5.3.110.0140.07312.65
5.3.100.0130.06412.12
5.3.90.0090.05612.08
5.3.80.0160.08212.07
5.3.70.0030.05312.08
5.3.60.0070.05812.07
5.3.50.0050.02212.00
5.3.40.0080.06412.00
5.3.30.0040.02411.94
5.3.20.0080.04411.72
5.3.10.0050.03111.68
5.3.00.0100.04911.67
5.2.170.0040.0209.17
5.2.160.0080.0599.17
5.2.150.0080.0509.17
5.2.140.0070.0459.17
5.2.130.0090.0389.13
5.2.120.0070.0389.13
5.2.110.0060.0389.13
5.2.100.0040.0399.13
5.2.90.0110.0389.13
5.2.80.0070.0459.13
5.2.70.0070.0479.12
5.2.60.0100.0459.08
5.2.50.0110.0459.04
5.2.40.0080.0409.02
5.2.30.0070.0419.00
5.2.20.0070.0388.99
5.2.10.0130.0498.92
5.2.00.0060.0388.77
5.1.60.0070.0308.06
5.1.50.0070.0318.06
5.1.40.0080.0348.05
5.1.30.0080.0388.39
5.1.20.0100.0298.42
5.1.10.0070.0388.14
5.1.00.0100.0678.14
5.0.50.0050.0286.62
5.0.40.0120.0436.49
5.0.30.0070.0436.30
5.0.20.0070.0276.27
5.0.10.0050.0316.24
5.0.00.0040.0436.24
4.4.90.0060.0214.78
4.4.80.0030.0224.76
4.4.70.0070.0184.75
4.4.60.0090.0254.75
4.4.50.0070.0294.77
4.4.40.0100.0434.71
4.4.30.0050.0214.76
4.4.20.0090.0214.84
4.4.10.0050.0234.85
4.4.00.0100.0324.76
4.3.110.0070.0314.67
4.3.100.0080.0254.66
4.3.90.0050.0204.63
4.3.80.0090.0394.58
4.3.70.0080.0304.63
4.3.60.0070.0304.63
4.3.50.0090.0324.63
4.3.40.0120.0654.54
4.3.30.0070.0283.29
4.3.20.0050.0213.26
4.3.10.0040.0203.22
4.3.00.0070.0276.92

preferences:
145.5 ms | 1394 KiB | 7 Q