3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<XML <data> <prod id="1"> <layer id="layer_0" imgSRC="data/361_layer_0.png"/> <layer id="layer_1" imgSRC="data/362_layer_0.png"/> <layer id="layer_2" imgSRC="data/363_layer_0.png"/> </prod> <prod id="2"> <layer id="layer_0" imgSRC="data/361_layer_0.png"/> <layer id="layer_1" imgSRC="data/362_layer_0.png"/> <layer id="layer_2" imgSRC="data/363_layer_0.png"/> </prod> </data> XML; $xml = simplexml_load_string($x); // assuming XML in $x $node = $xml->xpath("//prod[@id='2']")[0]; var_dump($node);

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.0120.00316.88
8.3.50.0050.01122.06
8.3.40.0160.00319.17
8.3.30.0110.00719.38
8.3.20.0070.00020.71
8.3.10.0050.00324.04
8.3.00.0030.00519.63
8.2.180.0140.00416.63
8.2.170.0070.01122.96
8.2.160.0050.00820.42
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00021.01
8.2.110.0060.00322.75
8.2.100.0030.00920.07
8.2.90.0030.00519.33
8.2.80.0000.00817.97
8.2.70.0050.00318.00
8.2.60.0090.00018.18
8.2.50.0060.00318.07
8.2.40.0040.00421.69
8.2.30.0040.00418.50
8.2.20.0040.00417.99
8.2.10.0040.00418.30
8.2.00.0060.00318.01
8.1.280.0070.00725.92
8.1.270.0040.00424.08
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.39
8.1.230.0080.00419.39
8.1.220.0040.00417.93
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0000.00817.47
8.1.180.0030.00618.10
8.1.170.0000.00918.76
8.1.160.0040.00422.37
8.1.150.0000.00818.90
8.1.140.0060.00317.66
8.1.130.0070.00018.09
8.1.120.0020.00517.61
8.1.110.0030.00617.59
8.1.100.0000.00717.59
8.1.90.0000.01017.80
8.1.80.0030.00517.54
8.1.70.0030.00617.74
8.1.60.0060.00317.71
8.1.50.0040.00417.61
8.1.40.0060.00317.79
8.1.30.0040.00417.76
8.1.20.0040.00417.79
8.1.10.0040.00417.78
8.1.00.0080.00017.82
8.0.300.0040.00418.77
8.0.290.0070.00017.42
8.0.280.0030.00518.75
8.0.270.0000.00717.52
8.0.260.0000.00717.47
8.0.250.0000.00717.10
8.0.240.0040.00417.29
8.0.230.0000.00717.38
8.0.220.0030.00317.11
8.0.210.0070.00017.31
8.0.200.0030.00317.07
8.0.190.0040.00417.18
8.0.180.0070.00417.08
8.0.170.0000.00817.30
8.0.160.0000.00717.38
8.0.150.0030.00517.03
8.0.140.0040.00417.26
8.0.130.0030.00313.58
8.0.120.0000.00817.23
8.0.110.0000.00817.09
8.0.100.0000.00817.28
8.0.90.0000.00817.06
8.0.80.0110.00417.18
8.0.70.0000.00717.12
8.0.60.0000.00717.30
8.0.50.0040.00417.11
8.0.30.0100.01017.57
8.0.20.0130.01017.46
8.0.10.0040.00417.22
8.0.00.0140.00617.04
7.4.330.0060.00015.00
7.4.320.0060.00016.84
7.4.300.0000.00616.84
7.4.290.0000.00816.84
7.4.280.0030.00316.68
7.4.270.0000.00716.79
7.4.260.0000.00816.78
7.4.250.0040.00416.57
7.4.240.0020.00616.69
7.4.230.0030.00316.73
7.4.220.0160.01016.86
7.4.210.0030.01516.83
7.4.200.0030.00517.00
7.4.190.0030.00317.07
7.4.160.0130.00316.97
7.4.150.0110.00817.40
7.4.140.0090.00917.86
7.4.130.0160.00616.84
7.4.120.0100.00816.97
7.4.110.0120.00616.74
7.4.100.0170.00716.82
7.4.90.0090.00916.98
7.4.80.0000.01819.39
7.4.70.0080.00916.87
7.4.60.0030.01316.89
7.4.50.0000.00716.86
7.4.40.0060.01216.48
7.4.30.0090.00916.76
7.4.00.0060.00914.80
7.3.330.0030.00313.25
7.3.320.0070.00013.49
7.3.310.0070.00016.72
7.3.300.0000.00716.61
7.3.290.0100.01016.73
7.3.280.0090.00916.57
7.3.270.0100.01417.40
7.3.260.0090.01016.71
7.3.250.0100.00916.70
7.3.240.0100.01016.82
7.3.230.0130.00316.57
7.3.210.0130.00716.63
7.3.200.0150.00219.39
7.3.190.0060.01616.70
7.3.180.0060.00916.73
7.3.170.0080.01516.63
7.3.160.0080.00816.62
7.3.120.0030.01314.95
7.3.110.0000.01514.97
7.3.100.0080.00314.77
7.3.90.0100.00314.84
7.3.80.0060.00915.11
7.3.70.0030.01014.91
7.3.60.0060.00914.60
7.3.50.0070.01014.80
7.3.40.0110.00314.97
7.3.30.0090.00315.10
7.3.20.0030.00616.68
7.3.10.0000.01416.57
7.3.00.0070.01016.61
7.2.330.0090.00916.67
7.2.320.0060.01316.63
7.2.310.0140.00616.55
7.2.300.0130.00716.97
7.2.290.0110.00617.08
7.2.240.0070.01015.34
7.2.230.0080.00915.02
7.2.220.0100.00315.02
7.2.210.0090.00615.15
7.2.200.0100.00715.10
7.2.190.0030.00715.01
7.2.180.0040.01115.12
7.2.170.0070.01015.15
7.2.160.0090.00615.07
7.2.150.0060.00917.18
7.2.140.0000.01517.07
7.2.130.0070.00717.17
7.2.120.0070.01016.93
7.2.110.0150.00016.89
7.2.100.0030.01016.91
7.2.90.0070.00716.89
7.2.80.0070.00717.09
7.2.70.0090.00617.05
7.2.60.0030.01216.95
7.2.50.0120.00016.98
7.2.40.0070.00316.87
7.2.30.0030.01316.90
7.2.20.0000.01017.04
7.2.10.0150.00416.90
7.2.00.0050.01018.31
7.1.330.0070.00716.18
7.1.320.0030.01015.82
7.1.310.0000.01116.02
7.1.300.0070.00715.79
7.1.290.0070.00315.86
7.1.280.0040.00815.91
7.1.270.0110.00316.03
7.1.260.0060.00915.84
7.1.250.0090.00315.68
7.1.200.0090.00615.93
7.1.100.0070.00718.34
7.1.70.0050.00317.23
7.1.60.0070.01819.46
7.1.50.0030.02017.08
7.1.00.0030.07322.57
7.0.200.0000.00716.86
7.0.140.0000.07022.21
7.0.60.0170.08020.09
7.0.50.0070.06318.03
7.0.40.0030.06720.48
7.0.30.0370.07020.24
7.0.20.0230.04320.28
7.0.10.0270.05020.39
7.0.00.0200.07020.45
5.6.280.0030.07021.03
5.6.210.0030.04320.77
5.6.200.0070.04718.38
5.6.190.0130.05720.85
5.6.180.3370.04720.61
5.6.170.0400.07020.57
5.6.160.0100.06320.59
5.6.150.0000.04718.28
5.6.140.0030.04018.33
5.6.130.0070.04018.32
5.6.120.0070.08721.19
5.6.110.0030.08721.24
5.6.100.0070.05021.24
5.6.90.0100.07721.16
5.6.80.0130.07320.66
5.6.70.0230.07720.46
5.5.350.0270.06020.71
5.5.340.0100.06718.22
5.5.330.0100.08320.43
5.5.320.0400.04020.43
5.5.310.0300.06720.45
5.5.300.0070.06718.16
5.5.290.0300.03018.18
5.5.280.0100.04321.05
5.5.270.0030.04320.91
5.5.260.0100.03720.94
5.5.250.0070.08720.77
5.5.240.0100.07020.43
5.4.450.0370.05022.18
5.4.440.0670.04322.18
5.4.430.0530.04722.18
5.4.420.0470.04322.18
5.4.410.0300.04022.18
5.4.400.0230.04722.18
5.4.390.0400.02722.18
5.4.380.0430.04722.18
5.4.370.0600.04022.18
5.4.360.0370.03022.18
5.4.350.0270.03722.18
5.4.340.0500.04322.18
5.4.320.0400.04722.18
5.4.310.0630.05022.18
5.4.300.0200.03722.18
5.4.290.0070.04722.18
5.4.280.0070.04022.18
5.4.270.0070.04022.18
5.4.260.0130.03322.16
5.4.250.0400.04722.08
5.4.240.0570.04722.02
5.4.230.0470.04322.02
5.4.220.0130.03322.02
5.4.210.0200.04022.02
5.4.200.0130.03322.02
5.4.190.0100.04322.02
5.4.180.0170.03022.02
5.4.170.0200.04322.02
5.4.160.0270.06022.02
5.4.150.0370.04022.02
5.4.140.0170.04722.02
5.4.130.0670.05022.02
5.4.120.0530.04022.02
5.4.110.0170.04022.02
5.4.100.0470.03722.02
5.4.90.0230.04722.02
5.4.80.0070.03722.02
5.4.70.0130.04022.02
5.4.60.0070.04022.02
5.4.50.0100.03722.02
5.4.40.0030.04022.02
5.4.30.0200.03722.02
5.4.20.0100.04022.02
5.4.10.0370.03322.02
5.4.00.0370.03322.02
5.3.290.0630.04322.18
5.3.280.0630.04722.02
5.3.270.0070.05022.02
5.3.260.0270.03022.02
5.3.250.0200.04722.02
5.3.240.0500.04022.02
5.3.230.0100.04322.02
5.3.220.0130.05022.02
5.3.210.0600.03322.02
5.3.200.0570.03022.02
5.3.190.0600.02722.02
5.3.180.0500.04322.02
5.3.170.0100.05022.02
5.3.160.0100.05022.02
5.3.150.0230.04722.02
5.3.140.0130.03322.02
5.3.130.0370.04722.02
5.3.120.0330.03022.02
5.3.110.0370.04022.02
5.3.100.0400.06322.02
5.3.90.0530.06322.02
5.3.80.0070.04022.02
5.3.70.0100.04722.02
5.3.60.0130.03322.02
5.3.50.0170.03022.02
5.3.40.0470.02722.02
5.3.30.0470.03322.02
5.3.20.0330.04325.18
5.3.10.0370.04325.18
5.3.00.0570.03025.18
5.2.170.0130.03022.02
5.2.160.0030.04322.02
5.2.150.0270.02322.02
5.2.140.0400.03025.18
5.2.130.0270.04025.18
5.2.120.0370.03025.18
5.2.110.0500.02725.18
5.2.100.0500.02325.18
5.2.90.0270.03025.18
5.2.80.0300.04725.18
5.2.70.0400.03725.18
5.2.60.0500.03025.18
5.2.50.0170.03725.18
5.2.40.0200.03025.18
5.2.30.0070.03325.18
5.2.20.0070.03325.18
5.2.10.0070.04025.18
5.2.00.0270.03025.18
5.1.60.0330.03025.18
5.1.50.0300.03325.18
5.1.40.0030.02325.18
5.1.30.0130.03025.18
5.1.20.0100.04025.18
5.1.10.0070.02025.18
5.1.00.0030.02325.18
5.0.50.0170.01725.18
5.0.40.0070.01325.18
5.0.30.0130.03325.18
5.0.20.0130.02325.18
5.0.10.0030.02025.14
5.0.00.0100.03725.18
4.4.90.0130.01725.18
4.4.80.0270.00725.18
4.4.70.0030.01725.18
4.4.60.0030.01325.18
4.4.50.0000.01325.18
4.4.40.0030.03725.18
4.4.30.0000.02725.18
4.4.20.0030.03325.18
4.4.10.0000.02325.18
4.4.00.0170.02325.18
4.3.110.0030.01325.18
4.3.100.0130.02025.18
4.3.90.0100.01325.18
4.3.80.0170.02725.18
4.3.70.0030.02025.18
4.3.60.0000.02025.18
4.3.50.0030.02025.18
4.3.40.0030.02025.18
4.3.30.0000.01325.18
4.3.20.0030.01725.18
4.3.10.0030.01725.18
4.3.00.0000.02025.18

preferences:
41.71 ms | 401 KiB | 5 Q