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]; 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.0140.00718.55
8.3.50.0090.00717.67
8.3.40.0040.01119.15
8.3.30.0070.00719.17
8.3.20.0080.00019.04
8.3.10.0000.00820.76
8.3.00.0090.00619.88
8.2.180.0090.00916.75
8.2.170.0120.00322.96
8.2.160.0000.01519.34
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00720.27
8.2.110.0030.00721.41
8.2.100.0040.00818.28
8.2.90.0040.00419.55
8.2.80.0000.00818.30
8.2.70.0030.00617.88
8.2.60.0040.00418.41
8.2.50.0050.00318.07
8.2.40.0080.00018.47
8.2.30.0060.00318.46
8.2.20.0030.00518.11
8.2.10.0040.00418.08
8.2.00.0000.00918.13
8.1.280.0120.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.00921.15
8.1.230.0000.01121.41
8.1.220.0000.00818.02
8.1.210.0000.01119.23
8.1.200.0000.00917.25
8.1.190.0040.00417.78
8.1.180.0000.00818.10
8.1.170.0000.00819.22
8.1.160.0050.00319.17
8.1.150.0080.00018.85
8.1.140.0040.00417.67
8.1.130.0070.00018.09
8.1.120.0070.00017.86
8.1.110.0080.00017.75
8.1.100.0040.00417.53
8.1.90.0070.00017.81
8.1.80.0060.00317.74
8.1.70.0040.00417.75
8.1.60.0040.00417.96
8.1.50.0040.00817.82
8.1.40.0040.00417.69
8.1.30.0060.00317.85
8.1.20.0040.00417.88
8.1.10.0000.00817.93
8.1.00.0050.00317.82
8.0.300.0000.00720.29
8.0.290.0000.00717.00
8.0.280.0070.00018.86
8.0.270.0040.00417.67
8.0.260.0070.00018.98
8.0.250.0050.00217.46
8.0.240.0040.00417.44
8.0.230.0030.00717.15
8.0.220.0000.00817.06
8.0.210.0030.00317.30
8.0.200.0000.00617.34
8.0.190.0070.00017.18
8.0.180.0040.00417.05
8.0.170.0000.00917.28
8.0.160.0030.00517.04
8.0.150.0090.00017.04
8.0.140.0030.00517.24
8.0.130.0000.00613.63
8.0.120.0040.00417.19
8.0.110.0040.00417.16
8.0.100.0040.00417.18
8.0.90.0040.00417.36
8.0.80.0060.01017.24
8.0.70.0080.00017.09
8.0.60.0070.00017.12
8.0.50.0050.00317.14
8.0.30.0090.01217.32
8.0.20.0130.00517.41
8.0.10.0040.00417.32
8.0.00.0130.01017.11
7.4.330.0060.00013.43
7.4.320.0060.00016.73
7.4.300.0030.00316.79
7.4.290.0050.00316.61
7.4.280.0040.00416.84
7.4.270.0030.00316.82
7.4.260.0000.00613.49
7.4.250.0080.00016.79
7.4.240.0000.00816.82
7.4.230.0050.00216.86
7.4.220.0100.00916.81
7.4.210.0070.00916.76
7.4.200.0000.00716.79
7.4.190.0030.00316.67
7.4.160.0070.01316.75
7.4.150.0120.01217.40
7.4.140.0080.01217.35
7.4.130.0070.01316.77
7.4.120.0070.00916.78
7.4.110.0070.01016.83
7.4.100.0100.01016.71
7.4.90.0090.00916.75
7.4.80.0070.01219.03
7.4.70.0070.01016.83
7.4.60.0070.01016.82
7.4.50.0000.00416.76
7.4.40.0030.01522.27
7.4.30.0080.00916.69
7.4.00.0060.00914.95
7.3.330.0000.00513.49
7.3.320.0030.00313.53
7.3.310.0000.00716.43
7.3.300.0040.00416.70
7.3.290.0100.01016.61
7.3.280.0080.00916.64
7.3.270.0150.00617.40
7.3.260.0130.00818.24
7.3.250.0100.01316.69
7.3.240.0130.00316.67
7.3.230.0170.00416.96
7.3.210.0070.01017.00
7.3.200.0170.00719.39
7.3.190.0040.01716.85
7.3.180.0030.01416.84
7.3.170.0100.00616.82
7.3.160.0060.00916.88
7.3.120.0090.00914.82
7.3.110.0040.00815.09
7.3.100.0060.00914.94
7.3.90.0030.01315.00
7.3.80.0000.01614.88
7.3.70.0030.00614.83
7.3.60.0000.01414.97
7.3.50.0040.00814.99
7.3.40.0070.01115.01
7.3.30.0100.00714.98
7.3.20.0000.01117.00
7.3.10.0110.00316.91
7.3.00.0060.00616.92
7.2.330.0100.00916.65
7.2.320.0150.00317.00
7.2.310.0070.01817.00
7.2.300.0070.01016.60
7.2.290.0130.01016.93
7.2.250.0070.01115.30
7.2.240.0070.01115.37
7.2.230.0070.01015.04
7.2.220.0030.00614.95
7.2.210.0040.00815.09
7.2.200.0100.00715.27
7.2.190.0100.00315.11
7.2.180.0070.00715.11
7.2.170.0040.01215.21
7.2.00.0130.00019.50
7.1.330.0000.01415.80
7.1.320.0040.01115.95
7.1.310.0000.01515.71
7.1.300.0060.00315.67
7.1.290.0060.00915.66
7.1.280.0110.00715.88
7.1.270.0030.01015.89
7.1.260.0070.01015.91
7.1.100.0060.00618.01
7.1.70.0000.00817.41
7.1.60.0130.01319.40
7.1.50.0030.01316.92
7.1.00.0030.07722.55
7.0.200.0000.01017.11
7.0.140.0070.07022.20
7.0.60.0170.07720.21
7.0.50.0100.05318.04
7.0.40.0230.07720.26
7.0.30.0300.04320.52
7.0.20.0300.07320.20
7.0.10.0230.04720.26
7.0.00.0300.06320.20
5.6.280.0030.07021.23
5.6.210.0100.03320.83
5.6.200.0030.08318.30
5.6.190.0170.06720.54
5.6.180.0200.04020.86
5.6.170.0270.07720.92
5.6.160.0300.05020.54
5.6.150.0270.07020.33
5.6.140.0170.07320.48
5.6.130.0300.05020.67
5.6.120.0230.08320.56
5.6.110.0330.07720.25
5.6.100.0170.06320.63
5.6.90.0200.04720.64
5.6.80.0200.04719.95
5.6.70.0230.04319.99
5.6.60.0100.05019.95
5.6.50.0270.07019.94
5.6.40.0200.05720.02
5.6.30.0270.07319.79
5.6.20.0200.04019.84
5.6.10.0200.04319.74
5.6.00.0400.06019.82
5.5.350.0230.06720.58
5.5.340.0030.07718.21
5.5.330.0230.08720.38
5.5.320.0230.08720.31
5.5.310.0230.05720.30
5.5.300.0170.04720.38
5.5.290.0230.06720.48
5.5.280.0330.06020.32
5.5.270.0270.07320.06
5.5.260.0230.07720.27
5.5.250.0230.05020.14
5.5.240.0230.06719.47
5.5.230.0430.02719.85
5.5.220.0230.06019.73
5.5.210.0270.04719.74
5.5.200.0300.06719.63
5.5.190.0370.07319.72
5.5.180.0230.06019.71
5.5.160.0170.06319.71
5.5.150.0270.05719.54
5.5.140.0230.05719.43
5.5.130.0370.06719.70
5.5.120.0400.06319.76
5.5.110.0300.03719.80
5.5.100.0230.07319.70
5.5.90.0230.07019.61
5.5.80.0300.05319.31
5.5.70.0300.06319.33
5.5.60.0300.06719.55
5.5.50.0170.05319.30
5.5.40.0200.06319.50
5.5.30.0170.06019.41
5.5.20.0170.05019.61
5.5.10.0230.06019.57
5.5.00.0200.08019.51
5.4.450.0300.07019.73
5.4.440.0130.05019.72
5.4.430.0200.08019.63
5.4.420.0270.06719.63
5.4.410.0200.08019.14
5.4.400.0200.08018.96
5.4.390.0100.06018.96
5.4.380.0300.07019.27
5.4.370.0400.03019.32
5.4.360.0300.06718.95
5.4.350.0500.06319.23
5.4.340.0200.03719.40
5.4.320.0230.04719.01
5.4.310.0200.05018.98
5.4.300.0300.06719.46
5.4.290.0300.07019.23
5.4.280.0230.07018.94
5.4.270.0200.04019.20
5.4.260.0230.07319.15
5.4.250.0270.07019.46
5.4.240.0200.07719.31
5.4.230.0230.04719.39
5.4.220.0230.05019.46
5.4.210.0300.06719.39
5.4.200.0300.07019.26
5.4.190.0170.04019.00
5.4.180.0200.03719.30
5.4.170.0300.05019.29
5.4.160.0200.07719.38
5.4.150.0330.05019.29
5.4.140.0270.04716.45
5.4.130.0100.05016.34
5.4.120.0230.03016.36
5.4.110.0400.04716.51
5.4.100.0270.05316.49
5.4.90.0200.04016.45
5.4.80.0230.05716.48
5.4.70.0270.06316.58
5.4.60.0170.07716.51
5.4.50.0300.06716.47
5.4.40.0230.06316.48
5.4.30.0330.06316.39
5.4.20.0230.05016.51
5.4.10.0270.06016.38
5.4.00.0200.07316.06
5.3.290.0430.04714.59
5.3.280.0270.07014.47
5.3.270.0300.06014.54
5.3.260.0300.08314.43
5.3.250.0200.06714.54
5.3.240.0330.06014.39
5.3.230.0230.03314.50
5.3.220.0200.05014.49
5.3.210.0500.03714.45
5.3.200.0330.05314.50
5.3.190.0200.03714.36
5.3.180.0100.05014.44
5.3.170.0300.05314.48
5.3.160.0270.06314.39
5.3.150.0200.07314.65
5.3.140.0230.07714.52
5.3.130.0230.07014.51
5.3.120.0230.05714.57
5.3.110.0130.04314.47
5.3.100.0200.07714.13
5.3.90.0300.07013.96
5.3.80.0230.05714.11
5.3.70.0230.07713.98
5.3.60.0200.04713.84
5.3.50.0270.04713.96
5.3.40.0200.07313.87
5.3.30.0200.07313.72
5.3.20.0330.06013.78
5.3.10.0330.02313.60
5.3.00.0170.04713.60
5.2.170.0200.06012.22
5.2.160.0270.05012.22
5.2.150.0130.06712.22
5.2.140.0270.05312.22
5.2.130.0230.04712.22
5.2.120.0230.05312.22
5.2.110.0230.05312.22
5.2.100.0370.04712.22
5.2.90.0300.04712.22
5.2.80.0230.05312.22
5.2.70.0200.06012.22
5.2.60.0170.06312.22
5.2.50.0230.05712.22
5.2.40.0200.05312.22
5.2.30.0200.05312.22
5.2.20.0200.05712.22
5.2.10.0100.04012.22
5.2.00.0100.05312.22
5.1.60.0230.04712.22
5.1.50.0200.05012.22
5.1.40.0200.04312.22
5.1.30.0170.05712.22
5.1.20.0130.05312.22
5.1.10.0200.05012.22
5.1.00.0170.02312.22
5.0.50.0130.04012.22
5.0.40.0100.02312.22
5.0.30.0070.03012.22
5.0.20.0070.04012.22
5.0.10.0100.04012.22
5.0.00.0100.05712.22
4.4.90.0100.03712.22
4.4.80.0070.03312.22
4.4.70.0100.03312.22
4.4.60.0130.02012.22
4.4.50.0100.02312.22
4.4.40.0100.05312.22
4.4.30.0100.01712.22
4.4.20.0070.04012.22
4.4.10.0070.03712.22
4.4.00.0070.04312.22
4.3.110.0100.02312.22
4.3.100.0070.01312.22
4.3.90.0000.03312.22
4.3.80.0030.04012.22
4.3.70.0000.02012.22
4.3.60.0030.03312.22
4.3.50.0030.02712.22
4.3.40.0070.03312.22
4.3.30.0000.02312.22
4.3.20.0000.02312.22
4.3.10.0000.02012.22
4.3.00.0030.02012.22

preferences:
48.41 ms | 400 KiB | 5 Q