3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> <child name='Child1'>Moi</child> <child name='Child2'>Terve</child> <subparent> <child name='Child3'>Hei</child> </subparent> </parent> <child name='Child4' /> </root>"; $xml = simplexml_load_string( $xml); $result = $xml->xpath('parent/subparent/child'); while(list( , $node) = each($result)) { echo 'b/c: ',$node,"\n"; }

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.0090.00618.68
8.3.50.0170.00322.24
8.3.40.0170.00319.23
8.3.30.0070.01120.68
8.3.20.0060.00319.04
8.3.10.0040.00419.77
8.3.00.0110.00720.06
8.2.180.0110.00417.00
8.2.170.0040.01122.96
8.2.160.0130.00720.90
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0060.00319.62
8.2.110.0070.00320.63
8.2.100.0040.00718.16
8.2.90.0000.00919.60
8.2.80.0070.00019.84
8.2.70.0030.00617.88
8.2.60.0040.00418.30
8.2.50.0000.00818.07
8.2.40.0040.00420.32
8.2.30.0000.00721.65
8.2.20.0070.00018.05
8.2.10.0080.00018.20
8.2.00.0030.00618.05
8.1.280.0150.00025.92
8.1.270.0150.00323.99
8.1.260.0110.00726.35
8.1.250.0040.00428.09
8.1.240.0030.01422.79
8.1.230.0030.00721.29
8.1.220.0060.00318.77
8.1.210.0040.00419.28
8.1.200.0060.00317.61
8.1.190.0040.00417.75
8.1.180.0000.00818.10
8.1.170.0080.00019.03
8.1.160.0040.00419.21
8.1.150.0070.00418.89
8.1.140.0040.00417.81
8.1.130.0030.00318.18
8.1.120.0080.00017.85
8.1.110.0030.00617.82
8.1.100.0040.00417.81
8.1.90.0030.00317.63
8.1.80.0040.00317.84
8.1.70.0040.00417.80
8.1.60.0000.00917.85
8.1.50.0040.00417.88
8.1.40.0040.00418.00
8.1.30.0050.00317.84
8.1.20.0030.00518.13
8.1.10.0040.00417.78
8.1.00.0030.00617.97
8.0.300.0070.00020.11
8.0.290.0000.00817.43
8.0.280.0040.00418.74
8.0.270.0080.00017.52
8.0.260.0030.00317.34
8.0.250.0040.00417.36
8.0.240.0000.00817.41
8.0.230.0030.00617.25
8.0.220.0070.00017.34
8.0.210.0030.00717.28
8.0.200.0040.00417.35
8.0.190.0050.00317.42
8.0.180.0040.00417.22
8.0.170.0000.00817.08
8.0.160.0000.00717.35
8.0.150.0000.00717.20
8.0.140.0000.00717.31
8.0.130.0040.00413.75
8.0.120.0080.00017.15
8.0.110.0080.00017.09
8.0.100.0000.00717.27
8.0.90.0000.00717.15
8.0.80.0060.01217.22
8.0.70.0080.00017.06
8.0.60.0040.00417.19
8.0.50.0030.00617.21
8.0.30.0110.01017.50
8.0.20.0090.01417.42
8.0.10.0030.00317.27
8.0.00.0090.01217.04
7.4.330.0020.00217.08
7.4.320.0000.00816.88
7.4.300.0030.00716.89
7.4.290.0070.00016.91
7.4.280.0000.00716.98
7.4.270.0000.00716.98
7.4.260.0000.00513.44
7.4.250.0040.00416.86
7.4.240.0000.00716.89
7.4.230.0000.00716.79
7.4.220.0120.00616.78
7.4.210.0090.00616.87
7.4.200.0000.00716.88
7.4.190.0070.00016.67
7.4.160.0200.00316.88
7.4.150.0130.00417.40
7.4.140.0100.00817.86
7.4.130.0120.00616.85
7.4.120.0080.00816.78
7.4.110.0100.01016.82
7.4.100.0110.00817.10
7.4.90.0130.01316.78
7.4.80.0130.01019.39
7.4.70.0120.00616.82
7.4.60.0110.00716.78
7.4.50.0050.00016.87
7.4.40.0070.00722.77
7.4.30.0160.00617.00
7.4.00.0080.00915.02
7.3.330.0030.00313.60
7.3.320.0000.00513.62
7.3.310.0070.00016.71
7.3.300.0060.00016.67
7.3.290.0000.01916.64
7.3.280.0070.00916.67
7.3.270.0090.00917.40
7.3.260.0130.01118.24
7.3.250.0050.01216.88
7.3.240.0090.00616.80
7.3.230.0080.00816.75
7.3.210.0170.00017.04
7.3.200.0070.01019.39
7.3.190.0120.00917.00
7.3.180.0040.01116.64
7.3.170.0130.01016.75
7.3.160.0040.01116.87
7.3.120.0050.01214.95
7.3.110.0090.00914.95
7.3.100.0130.00015.13
7.3.90.0070.01014.91
7.3.80.0060.00915.16
7.3.70.0130.00014.97
7.3.60.0110.00415.06
7.3.50.0070.00715.16
7.3.40.0040.00815.04
7.3.30.0060.00915.13
7.3.20.0110.00317.14
7.3.10.0070.00716.80
7.3.00.0070.00716.88
7.2.330.0160.03216.96
7.2.320.0130.01117.01
7.2.310.0090.00916.92
7.2.300.0060.01016.62
7.2.290.0110.00616.79
7.2.250.0060.01315.32
7.2.240.0070.01015.00
7.2.230.0080.00815.02
7.2.220.0120.00315.40
7.2.210.0030.00915.18
7.2.200.0000.01014.92
7.2.190.0060.00915.16
7.2.180.0120.00014.96
7.2.170.0030.01314.96
7.2.60.0090.00617.07
7.2.00.0060.01219.48
7.1.330.0030.01016.02
7.1.320.0040.00416.16
7.1.310.0080.00315.95
7.1.300.0040.00815.86
7.1.290.0000.01115.77
7.1.280.0060.00915.80
7.1.270.0060.00615.95
7.1.260.0110.00015.87
7.1.200.0030.00716.06
7.1.70.0100.00617.30
7.1.60.0030.01717.41
7.1.50.0070.01417.08
7.1.40.0060.00916.63
7.1.30.0030.00916.64
7.1.20.0060.00616.84
7.1.10.0000.01016.77
7.1.00.0000.00816.89
7.0.200.0030.01217.07
7.0.190.0050.00216.63
7.0.180.0040.00716.53
7.0.170.0030.01416.52
7.0.160.0000.01216.50
7.0.150.0000.00816.43
7.0.140.0080.00016.52
7.0.130.0030.00616.75
7.0.120.0030.00616.60
7.0.110.0000.00716.65
7.0.100.0070.00716.54
7.0.90.0000.01716.74
7.0.80.0040.00416.52
7.0.70.0030.00616.55
7.0.60.0030.01316.40
7.0.50.0060.00316.69
7.0.40.0000.00814.85
7.0.30.0000.00714.86
7.0.20.0000.00814.85
7.0.10.0040.00414.85
7.0.00.0000.01314.85
5.6.300.0000.04520.96
5.6.290.0140.03120.96
5.6.280.0030.04421.05
5.6.270.0000.04520.89
5.6.260.0000.04421.27
5.6.250.0100.03321.02
5.6.240.0070.04021.02
5.6.230.0030.04220.93
5.6.220.0070.03721.02
5.6.210.0110.04221.13
5.6.200.0060.03821.11
5.6.190.0070.05521.13
5.6.180.0060.04421.20
5.6.170.0070.04021.10
5.6.160.0000.04521.09
5.6.150.0100.04021.02
5.6.140.0070.04921.12
5.6.130.0090.03821.12
5.6.120.0070.04421.00
5.6.110.0130.04021.12
5.6.100.0070.03720.82
5.6.90.0030.08620.99
5.6.80.0100.03220.48
5.6.70.0030.07320.47
5.6.60.0000.05720.59
5.6.50.0030.04020.27
5.6.40.0100.06120.39
5.6.30.0060.03820.57
5.6.20.0070.04320.51
5.6.10.0000.04220.44
5.6.00.0130.04320.47
5.5.380.0070.07517.58
5.5.370.0070.03617.68
5.5.360.0030.06317.55
5.5.350.0000.05717.56
5.5.340.0000.04318.06
5.5.330.0030.05818.13
5.5.320.0030.03918.28
5.5.310.0030.04818.21
5.5.300.0000.04718.18
5.5.290.0240.04018.20
5.5.280.0000.04418.22
5.5.270.0000.04318.23
5.5.260.0070.03618.23
5.5.250.0030.04017.89
5.5.240.0000.04417.45
5.5.230.0000.05317.56
5.5.220.0070.06717.54
5.5.210.0060.03417.60
5.5.200.0030.05717.62
5.5.190.0070.03617.52
5.5.180.0090.04717.42
5.5.160.0000.04317.59
5.5.150.0060.03517.52
5.5.140.0000.04417.52
5.5.130.0130.04017.43
5.5.120.0070.03317.43
5.5.110.0030.04317.41
5.5.100.0030.06917.33
5.5.90.0030.04417.54
5.5.80.0040.03617.19
5.5.70.0130.04517.47
5.5.60.0030.04017.50
5.5.50.0030.03617.52
5.5.40.0000.04517.50
5.5.30.0030.05417.45
5.5.20.0000.04717.35
5.5.10.0060.05817.31
5.5.00.0030.03717.50
5.4.450.0030.05019.52
5.4.440.0000.04319.54
5.4.430.0090.03119.55
5.4.420.0070.03819.52
5.4.410.0030.05919.47
5.4.400.0030.05619.00
5.4.390.0070.07319.22
5.4.380.0060.03819.22
5.4.370.0060.03519.35
5.4.360.0070.04019.18
5.4.350.0100.03319.18
5.4.340.0030.03819.34
5.4.320.0030.04218.96
5.4.310.0040.03918.97
5.4.300.0100.03119.19
5.4.290.0000.04119.19
5.4.280.0060.03519.25
5.4.270.0030.03519.34
5.4.260.0000.03919.13
5.4.250.0030.03719.02
5.4.240.0000.06219.04
5.4.230.0000.05419.13
5.4.220.0030.04019.34
5.4.210.0000.04419.19
5.4.200.0100.06919.21
5.4.190.0030.04019.20
5.4.180.0070.03319.17
5.4.170.0070.03419.33
5.4.160.0030.04019.29
5.4.150.0000.04519.01
5.4.140.0000.03816.81
5.4.130.0030.04916.66
5.4.120.0100.02916.91
5.4.110.0000.03916.83
5.4.100.0000.04116.92
5.4.90.0100.04416.71
5.4.80.0030.03516.77
5.4.70.0000.03916.79
5.4.60.0070.03416.73
5.4.50.0100.02916.73
5.4.40.0000.04116.81
5.4.30.0000.07016.59
5.4.20.0030.03516.85
5.4.10.0030.04416.68
5.4.00.0030.05616.40
5.3.290.0030.03914.99
5.3.280.0030.03514.85
5.3.270.0030.03814.85
5.3.260.0030.04014.85
5.3.250.0000.04114.85
5.3.240.0030.07814.91
5.3.230.0100.03614.85
5.3.220.0040.03914.85
5.3.210.0000.04014.89
5.3.200.0030.03614.85
5.3.190.0070.04314.85
5.3.180.0040.03514.85
5.3.170.0070.03514.94
5.3.160.0000.04214.93
5.3.150.0030.04514.85
5.3.140.0070.03214.85
5.3.130.0100.07314.87
5.3.120.0030.07014.86
5.3.110.0030.06514.85
5.3.100.0130.04914.85
5.3.90.0030.03814.85
5.3.80.0000.04014.85
5.3.70.0030.04014.85
5.3.60.0000.04214.85
5.3.50.0030.03514.85
5.3.40.0030.03514.85
5.3.30.0030.03914.85
5.3.20.0000.07114.85
5.3.10.0030.05614.85
5.3.00.0060.03614.85
5.2.170.0070.02614.85
5.2.160.0030.03314.85
5.2.150.0100.05914.85
5.2.140.0070.04614.85
5.2.130.0030.04914.85
5.2.120.0000.05114.85
5.2.110.0060.02514.85
5.2.100.0030.04314.85
5.2.90.0030.02714.85
5.2.80.0030.02814.85
5.2.70.0030.06314.85
5.2.60.0040.02914.85
5.2.50.0070.05214.85
5.2.40.0030.04514.85
5.2.30.0000.06414.85
5.2.20.0000.03014.85
5.2.10.0030.05514.85
5.2.00.0070.05314.85
5.1.60.0070.02014.85
5.1.50.0030.03014.85
5.1.40.0030.03514.85
5.1.30.0030.02714.85
5.1.20.0000.03114.85
5.1.10.0000.03014.85
5.1.00.0000.03014.85
5.0.50.0030.02014.85
5.0.40.0030.01814.85
5.0.30.0070.02614.85
5.0.20.0030.03114.85
5.0.10.0000.02214.85
5.0.00.0040.02814.85
4.4.90.0000.02014.85
4.4.80.0060.01914.85
4.4.70.0030.02714.85
4.4.60.0000.02814.85
4.4.50.0030.03314.85
4.4.40.0040.02514.85
4.4.30.0030.01314.85
4.4.20.0000.01714.85
4.4.10.0030.01514.85
4.4.00.0000.02814.85
4.3.110.0000.01914.85
4.3.100.0000.02114.85
4.3.90.0000.01714.85
4.3.80.0030.02414.85
4.3.70.0030.01414.85
4.3.60.0000.01614.85
4.3.50.0030.03414.85
4.3.40.0000.02514.85
4.3.30.0000.03814.85
4.3.20.0030.01614.85
4.3.10.0000.01714.85
4.3.00.0030.01714.85

preferences:
50.49 ms | 401 KiB | 5 Q