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']/layer")[0]; echo $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.0060.01218.43
8.3.50.0220.00622.18
8.3.40.0000.01918.88
8.3.30.0140.00019.39
8.3.20.0000.00820.66
8.3.10.0030.00523.98
8.3.00.0080.00019.63
8.2.180.0140.00419.04
8.2.170.0100.01022.96
8.2.160.0100.00620.72
8.2.150.0080.00024.18
8.2.140.0040.01124.66
8.2.130.0060.01226.16
8.2.120.0040.00422.48
8.2.110.0040.00822.50
8.2.100.0080.00419.73
8.2.90.0090.00317.88
8.2.80.0040.00419.13
8.2.70.0000.00818.18
8.2.60.0060.00318.30
8.2.50.0050.00318.10
8.2.40.0050.00520.92
8.2.30.0040.00418.50
8.2.20.0050.00718.12
8.2.10.0000.00818.40
8.2.00.0000.00718.00
8.1.280.0060.01325.92
8.1.270.0000.00824.17
8.1.260.0090.00026.35
8.1.250.0140.00328.09
8.1.240.0090.00022.98
8.1.230.0040.00819.41
8.1.220.0040.00417.89
8.1.210.0030.00618.77
8.1.200.0080.00017.61
8.1.190.0090.00017.48
8.1.180.0040.00418.10
8.1.170.0050.00318.87
8.1.160.0040.00422.29
8.1.150.0000.00718.88
8.1.140.0040.00417.66
8.1.130.0000.00718.19
8.1.120.0000.00717.83
8.1.110.0040.00417.80
8.1.100.0050.00517.82
8.1.90.0000.00717.62
8.1.80.0040.00417.61
8.1.70.0040.00417.75
8.1.60.0030.00617.87
8.1.50.0040.00417.61
8.1.40.0040.00417.86
8.1.30.0040.00417.80
8.1.20.0030.00617.98
8.1.10.0050.00217.75
8.1.00.0050.00317.74
8.0.300.0060.00319.80
8.0.290.0040.00417.00
8.0.280.0070.00018.82
8.0.270.0000.00717.63
8.0.260.0040.00417.12
8.0.250.0000.00617.18
8.0.240.0030.00417.22
8.0.230.0040.00417.37
8.0.220.0030.00317.02
8.0.210.0070.00017.25
8.0.200.0060.00017.31
8.0.190.0000.00817.18
8.0.180.0050.00317.32
8.0.170.0080.00017.26
8.0.160.0000.00717.10
8.0.150.0070.00017.21
8.0.140.0080.00016.98
8.0.130.0000.00513.72
8.0.120.0040.00417.05
8.0.110.0070.00017.25
8.0.100.0060.00317.18
8.0.90.0000.00717.19
8.0.80.0130.00317.08
8.0.70.0050.00217.23
8.0.60.0000.00717.29
8.0.50.0000.00717.19
8.0.30.0120.00917.42
8.0.20.0080.01117.40
8.0.10.0000.00717.34
8.0.00.0120.00717.05
7.4.330.0000.00515.20
7.4.320.0040.00416.70
7.4.300.0030.00316.91
7.4.290.0030.00716.69
7.4.280.0000.00816.82
7.4.270.0060.00016.93
7.4.260.0000.00716.66
7.4.250.0040.00416.78
7.4.240.0020.00516.68
7.4.230.0000.00716.78
7.4.220.0140.00316.83
7.4.210.0100.00816.79
7.4.200.0000.00716.75
7.4.190.0040.00416.88
7.4.160.0100.00616.66
7.4.150.0080.01217.40
7.4.140.0090.00717.86
7.4.130.0090.00916.86
7.4.120.0080.00916.95
7.4.110.0190.00016.87
7.4.100.0110.00616.88
7.4.90.0100.01016.93
7.4.80.0090.00919.39
7.4.70.0060.01216.92
7.4.60.0080.00816.75
7.4.50.0090.00016.80
7.4.40.0030.01322.77
7.4.30.0000.01616.72
7.4.00.0040.01114.94
7.3.330.0030.00313.59
7.3.320.0000.00513.56
7.3.310.0000.00716.71
7.3.300.0050.00216.64
7.3.290.0150.00616.66
7.3.280.0120.00616.71
7.3.270.0150.00317.40
7.3.260.0090.00616.84
7.3.250.0120.00916.86
7.3.240.0120.00916.72
7.3.230.0150.00716.60
7.3.210.0120.00616.64
7.3.200.0060.01719.39
7.3.190.0040.01417.11
7.3.180.0060.01016.64
7.3.170.0060.01016.66
7.3.160.0080.00816.71
7.3.120.0100.00314.79
7.2.330.0180.04017.23
7.2.320.0120.00616.79
7.2.310.0040.01217.03
7.2.300.0090.00616.80
7.2.290.0090.00916.65
7.2.60.0030.01017.18
7.1.200.0070.00415.93
7.1.70.0130.00317.36
7.1.60.0100.01319.33
7.1.50.0070.01717.07
7.1.00.0030.07722.63
7.0.200.0040.00816.95
7.0.140.0130.06322.19
7.0.100.0030.08320.14
7.0.90.0300.05020.09
7.0.80.0170.06720.11
7.0.70.0030.08320.00
7.0.60.0400.07320.23
7.0.50.0070.08320.45
7.0.40.0100.08020.23
7.0.30.0070.08720.23
7.0.20.0070.09020.18
7.0.10.0030.08320.18
7.0.00.0100.06320.30
5.6.250.0030.07720.79
5.6.240.0030.06320.96
5.6.230.0070.04020.84
5.6.220.0100.05320.70
5.6.210.0100.07721.04
5.6.200.0070.08321.27
5.6.190.0130.08021.17
5.6.180.0130.07321.35
5.6.170.0070.08021.12
5.6.160.0030.04321.35
5.6.150.0030.09321.33
5.6.140.0100.08321.17
5.6.130.0070.09021.22
5.6.120.0070.05021.14
5.6.110.0100.08321.32
5.6.100.0130.07721.25
5.6.90.0230.06721.22
5.6.80.0130.07320.71
5.6.70.0070.06020.57
5.6.60.0000.07320.57
5.6.50.0100.07720.72
5.6.40.0130.07020.52
5.6.30.0030.08720.54
5.6.20.0170.07320.52
5.6.10.0030.08320.55
5.6.00.0100.08020.51
5.5.380.0100.07720.55
5.5.370.0100.07720.52
5.5.360.0070.07720.62
5.5.350.0130.07020.51
5.5.340.0070.05021.00
5.5.330.0100.07320.92
5.5.320.0270.06021.07
5.5.310.0130.04720.92
5.5.300.0030.08320.98
5.5.290.0030.08021.11
5.5.280.0130.07721.11
5.5.270.0100.08021.05
5.5.260.0030.06021.04
5.5.250.0170.06720.83
5.5.240.0100.07320.34
5.5.230.0170.07720.30
5.5.220.0030.08020.33
5.5.210.0130.07320.36
5.5.200.0070.06320.47
5.5.190.0170.07020.46
5.5.180.0100.08720.39
5.5.160.0170.07320.29
5.5.150.0130.07020.39
5.5.140.0100.04020.16
5.5.130.0070.05020.29
5.5.120.0100.07320.36
5.5.110.0170.07320.46
5.5.100.0030.05020.34
5.5.90.0070.07320.16
5.5.80.0070.08320.25
5.5.70.0070.05020.23
5.5.60.0130.07020.18
5.5.50.0100.04720.16
5.5.40.0100.07720.34
5.5.30.0070.05320.34
5.5.20.0100.07720.34
5.5.10.0100.07320.17
5.5.00.0170.05320.16
5.4.450.0000.09019.59
5.4.440.0200.05719.55
5.4.430.0070.08319.58
5.4.420.0130.07319.63
5.4.410.0130.07319.48
5.4.400.0200.06319.02
5.4.390.0170.07019.28
5.4.380.0130.04319.10
5.4.370.0000.04719.11
5.4.360.0070.08319.20
5.4.350.0230.05719.27
5.4.340.0130.08019.06
5.4.320.0030.04719.24
5.4.310.0030.08719.30
5.4.300.0070.04318.99
5.4.290.0030.05019.02
5.4.280.0100.07718.99
5.4.270.0130.06719.18
5.4.260.0030.06719.26
5.4.250.0100.06719.28
5.4.240.0070.07019.10
5.4.230.0070.07319.26
5.4.220.0030.05319.28
5.4.210.0000.08019.26
5.4.200.0070.07019.26
5.4.190.0070.07719.23
5.4.180.0070.05319.10
5.4.170.0030.04719.09
5.4.160.0100.07319.24
5.4.150.0030.08019.25
5.4.140.0000.08016.46
5.4.130.0100.07716.47
5.4.120.0070.06016.49
5.4.110.0100.06316.41
5.4.100.0100.04716.46
5.4.90.0070.04716.43
5.4.80.0000.07716.44
5.4.70.0130.06316.48
5.4.60.0100.07016.43
5.4.50.0070.07316.50
5.4.40.0100.07716.57
5.4.30.0100.06716.43
5.4.20.0070.06716.37
5.4.10.0070.06016.58
5.4.00.0100.07316.09
5.3.290.0070.08014.49
5.3.280.0030.04714.58
5.3.270.0070.07714.59
5.3.260.0000.08314.45
5.3.250.0170.07014.46
5.3.240.0070.05714.59
5.3.230.0130.07314.55
5.3.220.0030.07714.43
5.3.210.0000.08014.58
5.3.200.0070.07014.41
5.3.190.0000.08014.51
5.3.180.0100.07314.56
5.3.170.0030.07714.55
5.3.160.0070.06014.56
5.3.150.0030.08014.53
5.3.140.0070.07714.54
5.3.130.0070.04314.39
5.3.120.0000.06714.50
5.3.110.0030.08014.55
5.3.100.0030.06714.04
5.3.90.0070.07313.89
5.3.80.0100.07313.89
5.3.70.0070.07714.02
5.3.60.0070.07313.77
5.3.50.0100.07013.90
5.3.40.0170.06713.81
5.3.30.0000.04313.89
5.3.20.0070.05313.65
5.3.10.0070.07013.57
5.3.00.0000.08013.59
5.2.170.0000.07010.99
5.2.160.0030.05010.94
5.2.150.0070.06011.14
5.2.140.0030.06311.13
5.2.130.0030.05711.06
5.2.120.0030.06011.02
5.2.110.0030.05711.09
5.2.100.0070.04010.92
5.2.90.0100.05711.16
5.2.80.0030.06011.10
5.2.70.0070.06711.05
5.2.60.0030.05011.08
5.2.50.0130.05310.97
5.2.40.0070.06310.96
5.2.30.0100.06010.84
5.2.20.0070.06310.98
5.2.10.0100.05010.93
5.2.00.0070.07010.81
5.1.60.0070.05010.02
5.1.50.0070.04010.05
5.1.40.0170.04310.00
5.1.30.0030.05010.28
5.1.20.0070.05710.30
5.1.10.0070.0539.93
5.1.00.0030.03010.20
5.0.50.0100.0238.60
5.0.40.0030.0438.42
5.0.30.0070.0638.42
5.0.20.0100.0308.42
5.0.10.0030.0438.42
5.0.00.0030.0638.42
4.4.90.0000.0408.42
4.4.80.0000.0378.42
4.4.70.0000.0378.42
4.4.60.0000.0378.42
4.4.50.0030.0338.42
4.4.40.0000.0578.42
4.4.30.0070.0308.42
4.4.20.0000.0378.42
4.4.10.0070.0308.42
4.4.00.0000.0578.42
4.3.110.0000.0408.42
4.3.100.0070.0178.42
4.3.90.0000.0208.42
4.3.80.0000.0578.42
4.3.70.0030.0308.42
4.3.60.0100.0208.42
4.3.50.0000.0308.42
4.3.40.0030.0538.42
4.3.30.0000.0238.42
4.3.20.0000.0278.42
4.3.10.0070.0278.42
4.3.00.0030.0338.42

preferences:
42.54 ms | 401 KiB | 5 Q