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]; echo htmlentities($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.0100.01016.98
8.3.50.0120.00516.64
8.3.40.0070.00719.35
8.3.30.0070.00719.13
8.3.20.0000.00919.33
8.3.10.0030.00621.06
8.3.00.0000.01019.75
8.2.180.0200.00016.88
8.2.170.0200.00022.96
8.2.160.0100.00719.20
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00521.04
8.2.110.0090.00021.32
8.2.100.0070.00418.03
8.2.90.0030.00519.71
8.2.80.0050.00219.61
8.2.70.0000.00818.13
8.2.60.0070.00318.28
8.2.50.0050.00319.98
8.2.40.0060.00318.66
8.2.30.0030.00618.46
8.2.20.0030.00518.14
8.2.10.0000.00918.07
8.2.00.0040.00417.93
8.1.280.0090.01425.92
8.1.270.0100.01024.66
8.1.260.0030.00726.35
8.1.250.0080.00028.09
8.1.240.0070.00324.28
8.1.230.0060.00621.34
8.1.220.0030.00617.89
8.1.210.0090.00019.18
8.1.200.0030.00617.60
8.1.190.0040.00417.64
8.1.180.0040.00418.10
8.1.170.0060.00319.09
8.1.160.0040.00419.07
8.1.150.0000.00718.95
8.1.140.0080.00017.60
8.1.130.0000.00718.07
8.1.120.0000.00717.85
8.1.110.0000.00817.73
8.1.100.0030.00517.83
8.1.90.0030.00417.80
8.1.80.0000.00717.54
8.1.70.0050.00317.77
8.1.60.0040.00417.90
8.1.50.0040.00417.54
8.1.40.0040.00417.81
8.1.30.0040.00417.96
8.1.20.0070.00017.78
8.1.10.0040.00417.72
8.1.00.0000.00817.63
8.0.300.0050.00220.27
8.0.290.0000.00717.25
8.0.280.0050.00218.80
8.0.270.0040.00417.72
8.0.260.0030.00317.15
8.0.250.0070.00017.25
8.0.240.0000.00817.41
8.0.230.0000.00817.32
8.0.220.0050.00317.23
8.0.210.0000.00717.09
8.0.200.0060.00017.16
8.0.190.0000.00817.29
8.0.180.0040.00417.08
8.0.170.0100.00017.14
8.0.160.0000.00717.29
8.0.150.0000.00816.93
8.0.140.0050.00317.11
8.0.130.0050.00013.70
8.0.120.0030.00617.23
8.0.110.0040.00417.29
8.0.100.0040.00417.25
8.0.90.0000.00817.36
8.0.80.0110.00317.35
8.0.70.0040.00417.13
8.0.60.0040.00417.11
8.0.50.0000.00817.09
8.0.30.0060.01217.43
8.0.20.0110.00817.45
8.0.10.0040.00417.25
8.0.00.0110.01016.96
7.4.330.0020.00213.26
7.4.320.0030.00316.91
7.4.300.0040.00416.81
7.4.290.0030.00316.81
7.4.280.0000.00716.94
7.4.270.0030.00316.73
7.4.260.0060.00013.46
7.4.250.0080.00016.80
7.4.240.0030.00316.91
7.4.230.0000.00716.64
7.4.220.0030.01316.86
7.4.210.0080.00716.83
7.4.200.0040.00416.79
7.4.190.0070.00016.79
7.4.160.0120.00416.70
7.4.150.0140.00916.91
7.4.140.0120.01216.73
7.4.130.0130.00716.83
7.4.120.0140.00616.91
7.4.110.0090.00916.88
7.4.100.0070.01016.88
7.4.90.0070.01116.71
7.4.80.0070.01019.39
7.4.70.0030.01316.76
7.4.60.0110.00816.69
7.4.50.0040.00816.80
7.4.40.0090.00316.77
7.4.30.0160.00416.86
7.4.00.0090.00715.12
7.3.330.0000.00813.23
7.3.320.0000.00513.44
7.3.310.0000.00716.67
7.3.300.0000.00616.57
7.3.290.0070.00816.51
7.3.280.0110.00716.61
7.3.270.0110.00716.76
7.3.260.0130.00616.72
7.3.250.0110.01016.75
7.3.240.0120.00616.71
7.3.230.0030.01816.94
7.3.210.0100.00716.64
7.3.200.0060.01316.64
7.3.190.0060.00916.75
7.3.180.0150.00416.57
7.3.170.0070.01516.92
7.3.160.0100.01116.65
7.3.120.0080.00915.01
7.3.110.0070.00914.87
7.3.100.0070.00515.06
7.3.90.0080.00314.84
7.3.80.0070.01015.01
7.3.70.0100.00414.80
7.3.60.0020.01014.93
7.3.50.0060.00514.84
7.3.40.0060.00914.95
7.3.30.0040.00914.90
7.3.20.0100.00516.78
7.3.10.0050.01016.69
7.3.00.0060.00616.68
7.2.330.0030.01417.03
7.2.320.0160.00616.66
7.2.310.0130.01016.92
7.2.300.0150.00917.10
7.2.290.0150.00316.94
7.2.250.0130.00715.08
7.2.240.0070.01315.08
7.2.230.0020.01515.11
7.2.220.0090.00315.11
7.2.210.0030.01015.11
7.2.200.0000.01115.07
7.2.190.0050.00814.98
7.2.180.0080.00515.10
7.2.170.0020.01015.18
7.2.130.0140.00817.12
7.2.120.0160.00416.94
7.2.110.0100.01716.98
7.2.100.0100.00717.11
7.2.90.0140.01117.27
7.2.80.0170.00316.93
7.2.70.0070.00717.03
7.2.60.0100.00717.13
7.2.50.0120.00316.98
7.2.40.0000.01816.92
7.2.30.0040.01116.96
7.2.20.0150.00016.77
7.2.10.0190.00817.04
7.2.00.0070.00818.13
7.1.330.0060.00815.76
7.1.320.0080.00415.95
7.1.310.0060.00615.97
7.1.300.0100.00515.95
7.1.290.0040.01115.89
7.1.280.0050.00715.75
7.1.270.0060.00515.88
7.1.260.0060.00816.02
7.1.250.0120.00815.93
7.1.240.0100.00515.82
7.1.230.0090.00915.79
7.1.220.0140.00415.72
7.1.210.0110.01116.13
7.1.200.0150.01115.94
7.1.190.0060.01015.96
7.1.180.0110.00315.96
7.1.170.0030.01015.94
7.1.160.0080.00615.84
7.1.150.0080.00616.02
7.1.140.0000.01515.89
7.1.130.0280.00816.08
7.1.120.0180.00715.95
7.1.110.0110.01115.91
7.1.100.0120.00917.21
7.1.90.0160.00816.08
7.1.80.0060.01016.08
7.1.70.0010.00916.54
7.1.60.0140.00517.63
7.1.50.0090.01016.40
7.1.40.0040.00816.25
7.1.30.0000.01115.85
7.1.20.0040.00716.11
7.1.10.0070.00315.78
7.1.00.0030.02319.28
7.0.330.0120.00915.43
7.0.320.0130.00515.54
7.0.310.0040.01415.63
7.0.300.0040.00415.50
7.0.290.0070.00715.58
7.0.280.0030.01315.41
7.0.270.0170.00915.46
7.0.260.0330.00015.50
7.0.250.0340.00615.33
7.0.240.0230.00315.64
7.0.230.0040.01115.43
7.0.220.0120.00315.50
7.0.210.0060.00915.52
7.0.200.0470.00415.17
7.0.190.0100.00315.60
7.0.180.0000.01315.62
7.0.170.0130.00015.83
7.0.160.0080.00415.56
7.0.150.0110.00415.74
7.0.140.0030.04018.84
7.0.130.0030.01015.45
7.0.120.0000.04318.89
7.0.110.0060.00315.49
7.0.100.0090.00615.61
7.0.90.0030.01015.62
7.0.80.0080.00015.29
7.0.70.0110.00315.36
7.0.60.0120.04218.78
7.0.50.0050.02216.74
7.0.40.0080.04317.18
7.0.30.0200.02316.89
7.0.20.0160.04116.95
7.0.10.0070.03116.90
7.0.00.0060.02816.86
5.6.380.0000.01314.58
5.6.370.0080.00814.85
5.6.360.0070.00714.91
5.6.350.0030.00614.53
5.6.340.0000.00914.90
5.6.330.0110.01014.82
5.6.320.0060.00614.48
5.6.310.0040.00414.27
5.6.300.0070.00714.46
5.6.290.0110.00414.75
5.6.280.0070.03717.86
5.6.270.0000.01514.39
5.6.260.0040.01114.55
5.6.250.0090.00914.31
5.6.240.0030.01014.61
5.6.230.0060.00614.39
5.6.220.0030.00914.27
5.6.210.0100.03017.46
5.6.200.0050.02716.41
5.6.190.0110.04317.61
5.6.180.0180.03717.53
5.6.170.0180.03817.68
5.6.160.0110.03717.59
5.6.150.0130.04016.37
5.6.140.0070.02916.28
5.6.130.0150.04216.30
5.6.120.0100.03017.63
5.6.110.0020.02617.87
5.6.100.0050.04017.86
5.6.90.0100.04217.90
5.6.80.0050.02717.41
5.6.70.0030.01014.59
5.6.60.0030.01314.30
5.6.50.0190.00414.18
5.6.40.0080.00814.32
5.6.30.0070.00714.22
5.6.20.0110.00514.34
5.6.10.0060.00914.34
5.6.00.0070.00314.33
5.5.380.0030.00611.39
5.5.370.0000.01011.03
5.5.360.0100.00011.12
5.5.350.2030.02015.90
5.5.340.0050.04514.57
5.5.330.0030.02516.01
5.5.320.0190.02115.74
5.5.310.0110.02315.81
5.5.300.0050.04614.71
5.5.290.0160.03014.57
5.5.280.0030.04616.20
5.5.270.0060.02316.22
5.5.260.0060.02416.21
5.5.250.0050.03616.01
5.5.240.0120.04315.91
5.5.230.0000.00711.03
5.5.220.0030.00611.12
5.5.210.0030.00711.25
5.5.200.0090.00311.14
5.5.190.0030.00611.16
5.5.180.0130.00611.22
5.5.170.0030.00711.17
5.5.160.0040.00711.01
5.5.150.0090.00611.59
5.5.140.0080.00411.00
5.5.130.0040.00911.37
5.5.120.0040.00410.93
5.5.110.0050.00311.22
5.5.100.0000.01011.33
5.5.90.0030.01011.24
5.5.80.0030.00911.24
5.5.70.0040.00711.08
5.5.60.0110.00011.13
5.5.50.0030.01011.23
5.5.40.0000.00811.18
5.5.30.0040.00711.13
5.5.20.0050.00310.83
5.5.10.0080.00011.06
5.5.00.0040.00410.76
5.4.450.0020.02715.21
5.4.440.0050.02715.39
5.4.430.0090.02515.29
5.4.420.0050.02015.38
5.4.410.0130.02015.31
5.4.400.0020.03115.39
5.4.390.0050.03815.02
5.4.380.0070.02515.18
5.4.370.0050.03814.96
5.4.360.0110.02015.08
5.4.350.0050.04315.32
5.4.340.0100.01814.99
5.4.330.0000.00611.21
5.4.320.0050.03115.05
5.4.310.0090.04015.25
5.4.300.0120.03515.24
5.4.290.0030.02815.23
5.4.280.0030.03514.91
5.4.270.0100.03415.07
5.4.260.0060.02615.24
5.4.250.0090.03215.14
5.4.240.0050.04215.22
5.4.230.0120.02715.29
5.4.220.0020.02515.26
5.4.210.0080.04015.15
5.4.200.0050.04015.16
5.4.190.0040.04115.26
5.4.180.0030.02215.08
5.4.170.0080.02215.25
5.4.160.0050.04315.07
5.4.150.0030.04015.27
5.4.140.0070.03713.92
5.4.130.0100.03113.76
5.4.120.0070.02213.75
5.4.110.0040.04013.86
5.4.100.0080.03813.87
5.4.90.0050.03713.76
5.4.80.0080.02613.74
5.4.70.0030.02613.71
5.4.60.0070.02413.89
5.4.50.0050.03113.72
5.4.40.0140.03013.80
5.4.30.0050.03013.88
5.4.20.0030.02813.69
5.4.10.0030.02513.82
5.4.00.0030.04013.49
5.3.290.0090.02312.46
5.3.280.0030.04612.34
5.3.270.0070.03812.37
5.3.260.0070.02012.38
5.3.250.0070.03512.27
5.3.240.0030.02512.37
5.3.230.0050.02812.29
5.3.220.0050.02012.30
5.3.210.0070.03712.24
5.3.200.0030.04212.37
5.3.190.0080.03212.35
5.3.180.0070.02012.39
5.3.170.0030.04212.49
5.3.160.0040.04312.40
5.3.150.0030.02212.44
5.3.140.0030.04312.34
5.3.130.0050.04312.36
5.3.120.0020.03812.34
5.3.110.0050.03912.28
5.3.100.0120.01812.00
5.3.90.0020.02512.13
5.3.80.0050.02712.04
5.3.70.0050.04012.14
5.3.60.0000.02712.07
5.3.50.0010.02612.02
5.3.40.0040.02411.85
5.3.30.0080.03812.00
5.3.20.0060.02011.80
5.3.10.0050.01911.78
5.3.00.0030.03211.83
5.2.170.0050.03410.28
5.2.160.0040.01710.23
5.2.150.0050.03510.32
5.2.140.0030.01610.27
5.2.130.0030.03410.23
5.2.120.0030.02310.25
5.2.110.0020.02910.25
5.2.100.0030.02110.24
5.2.90.0030.02610.20
5.2.80.0030.02510.16
5.2.70.0060.03510.25
5.2.60.0030.03610.16
5.2.50.0060.01310.21
5.2.40.0030.02910.17
5.2.30.0030.01810.19
5.2.20.0080.03010.17
5.2.10.0080.01310.15
5.2.00.0080.02710.07
5.1.60.0030.0159.69
5.1.50.0030.0259.73
5.1.40.0050.0289.68
5.1.30.0080.0279.81
5.1.20.0030.0209.84
5.1.10.0070.0279.78
5.1.00.0040.0249.78
5.0.50.0030.0239.25
5.0.40.0060.0229.25
5.0.30.0000.0229.25
5.0.20.0050.0249.25
5.0.10.0080.0089.25
5.0.00.0040.0179.25
4.4.90.0050.0139.25
4.4.80.0030.0189.25
4.4.70.0020.0229.25
4.4.60.0030.0099.25
4.4.50.0020.0109.25
4.4.40.0010.0159.25
4.4.30.0050.0089.25
4.4.20.0020.0169.25
4.4.10.0020.0209.25
4.4.00.0020.0209.25
4.3.110.0020.0129.25
4.3.100.0000.0129.25
4.3.90.0010.0109.25
4.3.80.0000.0179.25
4.3.70.0030.0139.25
4.3.60.0030.0189.25
4.3.50.0020.0209.25
4.3.40.0020.0299.25
4.3.30.0030.0129.25
4.3.20.0010.0109.25
4.3.10.0040.0129.25
4.3.00.0030.0089.25

preferences:
52.16 ms | 401 KiB | 5 Q