3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <always> &lt;![CDATA[Document Checklist: Use this checklist to make sure all your documents are complete &amp; ready to go! There are a few things that we need that are often overlooked. * Please verify that your name spelling, middle initial and property address all match the information you submitted to the IRS exactly. * If you've filed taxes under different addresses for one or both of the last two years, please complete line 4 of the form. * Please provide a written signature, we cannot accept electronic signatures on this document. ]]&gt; </always> XML; $sml = new SimpleXMLElement ($xml); $result = $sml->xpath('/always'); $result2 = (string) array_pop($result); echo $result2; if (substr($result2, 0, 4) === '&lt;') $result2 = substr($result2, 4); if (substr($result2, -4) === '&gt;') $result2 = substr($result2, 0, -4); echo $result2;

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.0030.01418.80
8.3.50.0100.01022.31
8.3.40.0090.00919.17
8.3.30.0110.00419.33
8.3.20.0040.00420.41
8.3.10.0040.00420.85
8.3.00.0050.00317.88
8.2.180.0120.00417.00
8.2.170.0120.00322.96
8.2.160.0030.01020.85
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.48
8.2.110.0000.00920.81
8.2.100.0090.00318.34
8.2.90.0040.00419.55
8.2.80.0030.00618.00
8.2.70.0060.00317.88
8.2.60.0090.00018.41
8.2.50.0030.00618.07
8.2.40.0040.00418.58
8.2.30.0050.00319.78
8.2.20.0000.00818.00
8.2.10.0000.00718.40
8.2.00.0080.00018.03
8.1.280.0040.01125.92
8.1.270.0080.00024.14
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00322.43
8.1.230.0040.00819.30
8.1.220.0030.00618.16
8.1.210.0050.00318.77
8.1.200.0000.01017.85
8.1.190.0000.00817.60
8.1.180.0040.00418.10
8.1.170.0050.00319.07
8.1.160.0040.00422.26
8.1.150.0070.00019.21
8.1.140.0000.00717.76
8.1.130.0040.00418.32
8.1.120.0050.00217.77
8.1.110.0000.00817.85
8.1.100.0040.00417.84
8.1.90.0040.00417.94
8.1.80.0070.00017.92
8.1.70.0030.00317.82
8.1.60.0060.00317.98
8.1.50.0030.00517.88
8.1.40.0040.00417.77
8.1.30.0000.00818.00
8.1.20.0060.00318.05
8.1.10.0040.00417.81
8.1.00.0000.00817.90
8.0.300.0000.00818.77
8.0.290.0040.00417.25
8.0.280.0030.00518.86
8.0.270.0070.00017.75
8.0.260.0060.00017.66
8.0.250.0030.00317.41
8.0.240.0030.00517.39
8.0.230.0000.00717.37
8.0.220.0050.00217.38
8.0.210.0000.00717.11
8.0.200.0000.00617.28
8.0.190.0040.00417.37
8.0.180.0040.00417.31
8.0.170.0040.00417.20
8.0.160.0070.00017.28
8.0.150.0030.00317.14
8.0.140.0080.00017.33
8.0.130.0000.00513.60
8.0.120.0000.00817.19
8.0.110.0050.00217.30
8.0.100.0000.00817.04
8.0.90.0000.00717.20
8.0.80.0120.00317.25
8.0.70.0000.00717.27
8.0.60.0000.00717.42
8.0.50.0070.00017.29
8.0.30.0100.01017.57
8.0.20.0110.01217.55
8.0.10.0040.00417.40
8.0.00.0130.00617.17
7.4.330.0030.00315.42
7.4.320.0030.00316.97
7.4.300.0030.00316.99
7.4.290.0060.00316.92
7.4.280.0040.00416.93
7.4.270.0030.00316.91
7.4.260.0040.00416.74
7.4.250.0050.00316.96
7.4.240.0000.00716.84
7.4.230.0070.00016.98
7.4.220.0060.01816.96
7.4.210.0140.00616.87
7.4.200.0030.00317.00
7.4.160.0030.01216.82
7.4.150.0070.01017.40
7.4.140.0060.01117.86
7.4.130.0130.00716.90
7.4.120.0130.00516.94
7.4.110.0130.00316.89
7.4.100.0040.01717.03
7.4.90.0160.00716.92
7.4.80.0070.01019.03
7.4.70.0140.01016.93
7.4.60.0130.00716.84
7.4.50.0060.00316.70
7.4.40.0100.00617.07
7.4.30.0060.01317.02
7.4.00.0060.01015.28
7.3.330.0020.00513.40
7.3.320.0050.00013.64
7.3.310.0000.00716.66
7.3.300.0000.00716.70
7.3.290.0000.01516.75
7.3.280.0060.00916.71
7.3.270.0070.01017.40
7.3.260.0090.00916.59
7.3.250.0090.01616.86
7.3.240.0180.00616.86
7.3.230.0140.00416.89
7.3.210.0170.00016.63
7.3.200.0030.01419.39
7.3.190.0170.00316.96
7.3.180.0060.01016.95
7.3.170.0040.01616.99
7.3.160.0030.01316.81
7.2.330.0140.01016.72
7.2.320.0000.01716.98
7.2.310.0100.00716.77
7.2.300.0130.00316.82
7.2.290.0030.01916.71
7.2.60.0030.01316.96
7.2.00.0000.01119.45
7.1.200.0030.00715.92
7.1.100.0070.01018.32
7.1.70.0070.00717.16
7.1.60.0070.01719.32
7.1.50.0060.01917.08
7.1.00.0070.07322.58
7.0.200.0070.00317.01
7.0.140.0100.06022.19
7.0.70.3270.03720.11
7.0.60.0070.07320.07
7.0.50.0170.06717.99
7.0.40.0070.09320.48
7.0.30.0400.08020.41
7.0.20.0400.06720.31
7.0.10.0270.07020.37
7.0.00.0170.06020.34
5.6.280.0100.06721.22
5.6.210.0100.06720.82
5.6.200.0030.09018.38
5.6.190.0130.03320.82
5.6.180.0070.08320.52
5.6.170.0400.06320.54
5.6.160.0200.07020.76
5.6.150.0030.08318.43
5.6.140.0030.08318.38
5.6.130.0000.08718.42
5.6.120.0030.04321.29
5.6.110.0130.08021.25
5.6.100.0000.08021.30
5.6.90.0030.05721.21
5.6.80.0100.05320.66
5.6.70.0130.06720.55
5.5.350.0070.06020.61
5.5.340.0030.08718.18
5.5.330.0030.04320.38
5.5.320.0100.05320.46
5.5.310.0470.06020.41
5.5.300.0070.04018.05
5.5.290.0000.09018.12
5.5.280.0070.05320.98
5.5.270.0170.07320.93
5.5.260.0130.07320.90
5.5.250.0100.07720.96
5.5.240.0070.07320.29
5.4.450.0130.04019.71
5.4.440.0000.06719.48
5.4.430.1030.07719.59
5.4.420.0670.00019.57
5.4.410.0630.00019.42
5.4.400.0630.00019.23
5.4.390.0630.00019.33
5.4.380.0330.07018.93
5.4.370.0430.05718.89
5.4.360.0400.07318.90
5.4.350.0370.06018.68
5.4.340.0400.06718.93
5.4.320.0040.03712.70
5.4.310.0080.03612.69
5.4.300.0060.03612.70
5.4.290.0030.04012.69
5.4.280.0030.03912.59
5.4.270.0080.03412.59
5.4.260.0040.03912.59
5.4.250.0060.03712.59
5.4.240.0100.03412.59
5.4.230.0090.03712.58
5.4.220.0050.04712.58
5.4.210.0050.04212.58
5.4.200.0110.04812.58
5.4.190.0060.03512.57
5.4.180.0050.03812.57
5.4.170.0070.03512.59
5.4.160.0060.03512.59
5.4.150.0050.03612.58
5.4.140.0070.03612.27
5.4.130.0080.03612.25
5.4.120.0090.03812.21
5.4.110.0050.04012.21
5.4.100.0050.03712.21
5.4.90.0040.03812.21
5.4.80.0030.04412.21
5.4.70.0040.03612.21
5.4.60.0070.03512.20
5.4.50.0050.04012.20
5.4.40.0050.04012.20
5.4.30.0070.03412.19
5.4.20.0110.03912.19
5.4.10.0070.03912.19
5.4.00.0030.04411.68
5.3.290.0070.03812.96
5.3.280.0080.03712.89
5.3.270.0060.03812.90
5.3.260.0100.03512.91
5.3.250.0080.03512.91
5.3.240.0060.03712.90
5.3.230.0070.03612.90
5.3.220.0070.03812.86
5.3.210.0100.03412.86
5.3.200.0030.03812.86
5.3.190.0070.03612.87
5.3.180.0040.03812.86
5.3.170.0050.03812.86
5.3.160.0060.03812.86
5.3.150.0060.04412.86
5.3.140.0060.05112.85
5.3.130.0050.03912.85
5.3.120.0030.04312.85
5.3.110.0060.03912.85
5.3.100.0070.03612.33
5.3.90.0070.03712.32
5.3.80.0070.03512.30
5.3.70.0080.03412.30
5.3.60.0060.03712.29
5.3.50.0060.03612.23
5.3.40.0090.03412.23
5.3.30.0130.03512.20
5.3.20.0050.03811.98
5.3.10.0070.04611.95
5.3.00.0080.03611.93
5.2.170.0040.0319.43
5.2.160.0040.0329.43
5.2.150.0030.0329.44
5.2.140.0050.0319.43
5.2.130.0030.0339.39
5.2.120.0060.0289.39
5.2.110.0040.0309.39
5.2.100.0040.0299.39
5.2.90.0050.0359.39
5.2.80.0070.0289.39
5.2.70.0050.0309.38
5.2.60.0040.0309.33
5.2.50.0030.0319.30
5.2.40.0050.0289.29
5.2.30.0040.0309.25
5.2.20.0040.0319.28
5.2.10.0070.0269.20
5.2.00.0060.0329.05
5.1.60.0040.0248.33
5.1.50.0050.0238.33
5.1.40.0050.0248.33
5.1.30.0040.0278.67
5.1.20.0040.0278.69
5.1.10.0060.0278.40
5.1.00.0040.0258.40
5.0.50.0030.0216.88
5.0.40.0040.0196.74
5.0.30.0030.0326.56
5.0.20.0030.0196.53
5.0.10.0040.0196.52
5.0.00.0020.0326.50
4.4.90.0050.0164.78
4.4.80.0050.0124.75
4.4.70.0030.0174.75
4.4.60.0020.0164.76
4.4.50.0010.0164.77
4.4.40.0030.0254.71
4.4.30.0010.0174.76
4.4.20.0050.0124.84
4.4.10.0030.0204.85
4.4.00.0020.0254.75
4.3.110.0030.0154.67
4.3.100.0080.0164.66
4.3.90.0010.0194.63
4.3.80.0010.0264.59
4.3.70.0010.0164.63
4.3.60.0000.0204.63
4.3.50.0020.0164.63
4.3.40.0010.0254.54
4.3.30.0020.0153.32
4.3.20.0020.0183.29
4.3.10.0010.0203.24
4.3.00.0030.01016.39

preferences:
34.76 ms | 401 KiB | 5 Q