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[@id='layer_2']")[0];

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.70.0070.01518.68
8.3.60.0100.01016.88
8.3.50.0120.01016.79
8.3.40.0180.00018.81
8.3.30.0100.01019.09
8.3.20.0120.00418.76
8.3.10.0030.00620.91
8.3.00.0080.00819.50
8.2.180.0090.00616.88
8.2.170.0120.00322.96
8.2.160.0130.00721.40
8.2.150.0090.00024.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00421.11
8.2.110.0030.00721.50
8.2.100.0040.00817.87
8.2.90.0040.00719.56
8.2.80.0030.00519.63
8.2.70.0000.00818.00
8.2.60.0030.00918.28
8.2.50.0050.00518.07
8.2.40.0040.00418.53
8.2.30.0030.00718.38
8.2.20.0040.00418.07
8.2.10.0070.00017.86
8.2.00.0080.00018.00
8.1.280.0150.00025.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0100.00022.82
8.1.230.0090.00321.30
8.1.220.0080.00017.89
8.1.210.0050.00319.21
8.1.200.0050.00517.48
8.1.190.0080.00017.78
8.1.180.0000.01218.10
8.1.170.0030.00619.02
8.1.160.0040.00419.11
8.1.150.0000.00718.96
8.1.140.0040.00417.55
8.1.130.0000.00718.01
8.1.120.0000.00717.82
8.1.110.0040.00417.53
8.1.100.0040.00417.59
8.1.90.0050.00217.61
8.1.80.0040.00417.80
8.1.70.0000.00817.76
8.1.60.0080.00017.66
8.1.50.0080.00017.56
8.1.40.0030.00517.64
8.1.30.0000.00817.79
8.1.20.0040.00417.93
8.1.10.0040.00417.68
8.1.00.0050.00217.62
8.0.300.0040.00420.16
8.0.290.0000.00717.00
8.0.280.0030.00318.71
8.0.270.0050.00217.53
8.0.260.0030.00317.18
8.0.250.0000.00717.19
8.0.240.0040.00417.11
8.0.230.0030.00317.38
8.0.220.0030.00317.09
8.0.210.0000.00717.04
8.0.200.0060.00417.39
8.0.190.0080.00017.32
8.0.180.0000.00717.11
8.0.170.0060.00317.11
8.0.160.0030.00517.27
8.0.150.0000.00917.13
8.0.140.0030.00617.25
8.0.130.0030.00313.52
8.0.120.0040.00417.24
8.0.110.0030.00517.25
8.0.100.0070.00017.18
8.0.90.0070.00017.20
8.0.80.0030.01317.26
8.0.70.0050.00317.27
8.0.60.0040.00417.35
8.0.50.0000.00717.22
8.0.30.0090.01017.52
8.0.20.0180.00817.44
8.0.10.0040.00417.32
8.0.00.0070.01117.05
7.4.330.0000.00513.28
7.4.320.0030.00316.89
7.4.300.0030.00316.89
7.4.290.0000.00716.75
7.4.280.0060.00316.81
7.4.270.0030.00316.73
7.4.260.0060.00013.51
7.4.250.0080.00016.76
7.4.240.0030.00316.79
7.4.230.0000.00716.75
7.4.220.0100.00616.79
7.4.210.0100.00816.78
7.4.200.0050.00316.77
7.4.190.0040.00417.04
7.4.160.0000.01517.04
7.4.150.0120.00616.67
7.4.140.0070.01016.87
7.4.130.0110.01016.85
7.4.120.0070.01216.75
7.4.110.0030.01316.80
7.4.100.0210.00016.77
7.4.90.0120.00616.86
7.4.80.0130.00319.39
7.4.70.0120.00616.55
7.4.60.0090.00916.96
7.4.50.0040.00416.53
7.4.40.0060.00616.55
7.4.30.0100.01016.90
7.4.00.0070.00715.00
7.3.330.0050.00313.25
7.3.320.0000.00613.49
7.3.310.0030.00316.70
7.3.300.0030.00316.53
7.3.290.0130.00016.66
7.3.280.0090.00816.57
7.3.270.0070.01316.57
7.3.260.0070.01016.77
7.3.250.0120.01016.56
7.3.240.0100.00616.83
7.3.230.0120.00616.56
7.3.210.0120.01316.70
7.3.200.0120.00916.55
7.3.190.0100.00716.82
7.3.180.0060.01016.61
7.3.170.0080.00816.80
7.3.160.0100.01016.63
7.3.120.0060.01114.95
7.2.330.0110.00717.14
7.2.320.0120.00616.81
7.2.310.0070.01517.15
7.2.300.0040.01216.70
7.2.290.0080.01616.74
7.2.00.0070.00319.56
7.1.100.0070.00418.29
7.1.70.0090.00916.70
7.1.60.0100.01619.40
7.1.50.0090.01217.02
7.1.00.0030.06322.65
7.0.200.0000.00916.64
7.0.140.0070.07022.23
7.0.120.0000.05322.32
7.0.60.0330.07020.23
7.0.50.0100.08318.08
7.0.40.0030.06320.18
7.0.30.0470.06720.43
7.0.20.0270.05720.21
7.0.10.0170.07720.21
7.0.00.0100.08320.33
5.6.210.0170.07720.88
5.6.200.0070.04018.34
5.6.190.0170.07320.90
5.6.180.0270.07320.51
5.6.170.0270.03720.70
5.6.160.0130.07720.67
5.6.150.0130.03318.29
5.6.140.0170.05718.36
5.6.130.0100.03318.37
5.6.120.0000.07021.21
5.6.110.0100.07021.18
5.6.100.0070.06721.19
5.6.90.0130.05321.19
5.6.80.0030.08020.54
5.5.350.0200.07320.61
5.5.340.0030.05018.14
5.5.330.0030.04320.52
5.5.320.0070.08320.39
5.5.310.0200.06320.55
5.5.300.0030.04318.06
5.5.290.0070.05318.17
5.5.280.0030.04320.99
5.5.270.0130.07720.87
5.5.260.0070.05720.98
5.5.250.0130.06720.94
5.5.240.0130.05720.36
5.4.450.0130.06019.69
5.4.440.0000.04719.56
5.4.430.0030.05019.42
5.4.420.0100.06319.62
5.4.410.0070.04019.51
5.4.400.0070.06019.40
5.4.390.0000.05019.36
5.4.380.0030.04319.39
5.4.370.0030.07319.27
5.4.360.0100.05019.30
5.4.350.0070.04019.39
5.4.340.0200.06319.46
5.4.320.0130.05319.40
5.4.310.0070.06719.36
5.4.300.0100.07319.29
5.4.290.0000.04019.36
5.4.280.0030.04719.29
5.4.270.0170.07019.27
5.4.260.0070.07019.23
5.4.250.0030.06719.27
5.4.240.0030.07019.30
5.4.230.0030.06719.39
5.4.220.0030.05319.39
5.4.210.0100.03319.38
5.4.200.0000.05319.45
5.4.190.0070.07718.93
5.4.180.0070.07718.94
5.4.170.0070.05719.29
5.4.160.0030.07719.11
5.4.150.0030.04719.34
5.4.140.0130.07016.46
5.4.130.0000.04016.45
5.4.120.0130.04316.41
5.4.110.0030.07316.47
5.4.100.0070.04316.41
5.4.90.0070.06316.40
5.4.80.0000.07316.71
5.4.70.0030.08016.43
5.4.60.0070.07716.43
5.4.50.0100.06316.37
5.4.40.0030.07316.40
5.4.30.0100.07316.49
5.4.20.0100.07016.52
5.4.10.0070.04316.38
5.4.00.0030.05015.82
5.3.290.0000.06014.49
5.3.280.0100.06014.52
5.3.270.0030.08014.53
5.3.260.0000.05014.58
5.3.250.0070.06014.58
5.3.240.0030.04714.53
5.3.230.0130.07314.48
5.3.220.0070.06714.36
5.3.210.0100.06314.52
5.3.200.0000.08014.55
5.3.190.0200.06714.58
5.3.180.0100.07314.50
5.3.170.0130.06714.51
5.3.160.0000.08314.38
5.3.150.0070.06014.48
5.3.140.0100.05314.49
5.3.130.0100.07714.48
5.3.120.0070.04714.34
5.3.110.0070.04714.49
5.3.100.0000.08014.05
5.3.90.0030.08013.99
5.3.80.0100.07013.86
5.3.70.0030.05313.81
5.3.60.0030.04713.84
5.3.50.0070.07013.87
5.3.40.0070.06013.88
5.3.30.0100.03714.00
5.3.20.0070.03313.62
5.3.10.0100.05313.59
5.3.00.0070.06313.73
5.2.170.0000.03311.13
5.2.160.0000.06311.07
5.2.150.0030.03011.15
5.2.140.0000.03711.14
5.2.130.0070.02711.03
5.2.120.0130.05311.09
5.2.110.0070.05711.01
5.2.100.0030.06711.04
5.2.90.0000.06711.11
5.2.80.0100.05710.95
5.2.70.0030.04011.12
5.2.60.0030.03310.91
5.2.50.0000.06011.00
5.2.40.0100.04711.00
5.2.30.0070.06011.05
5.2.20.0100.05710.96
5.2.10.0030.04310.78
5.2.00.0070.06010.69
5.1.60.0100.05010.02
5.1.50.0030.02710.02
5.1.40.0070.0379.92
5.1.30.0070.02710.35
5.1.20.0070.04010.37
5.1.10.0070.04010.25
5.1.00.0030.04310.00
5.0.50.0070.0438.58
5.0.40.0030.0478.43
5.0.30.0000.0608.22
5.0.20.0030.0208.18
5.0.10.0000.0478.10
5.0.00.0030.0638.22
4.4.90.0000.0207.80
4.4.80.0000.0377.80
4.4.70.0000.0177.80
4.4.60.0000.0307.80
4.4.50.0030.0377.80
4.4.40.0000.0507.80
4.4.30.0030.0337.80
4.4.20.0030.0237.80
4.4.10.0130.0137.80
4.4.00.0030.0407.80
4.3.110.0000.0377.80
4.3.100.0030.0337.80
4.3.90.0000.0207.80
4.3.80.0000.0277.80
4.3.70.0000.0177.80
4.3.60.0030.0337.80
4.3.50.0000.0407.80
4.3.40.0030.0537.80
4.3.30.0000.0407.80
4.3.20.0000.0377.80
4.3.10.0070.0307.80
4.3.00.0000.0337.80

preferences:
47.69 ms | 401 KiB | 5 Q