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('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.40.0150.00619.17
8.3.30.0070.00720.61
8.3.20.0000.00819.11
8.3.10.0080.00021.26
8.3.00.0050.00320.04
8.2.170.0110.00422.96
8.2.160.0130.00320.82
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.57
8.2.110.0000.00920.75
8.2.100.0040.00717.97
8.2.90.0060.00319.55
8.2.80.0050.00219.57
8.2.70.0040.00417.88
8.2.60.0000.00818.18
8.2.50.0040.00418.07
8.2.40.0040.00420.32
8.2.30.0000.00819.80
8.2.20.0040.00418.00
8.2.10.0000.00918.21
8.2.00.0080.00018.11
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00924.38
8.1.230.0060.00623.07
8.1.220.0040.00418.77
8.1.210.0040.00419.14
8.1.200.0060.00317.63
8.1.190.0040.00417.90
8.1.180.0040.00418.10
8.1.170.0030.00518.90
8.1.160.0040.00419.18
8.1.150.0030.00718.96
8.1.140.0000.00717.69
8.1.130.0000.00818.29
8.1.120.0040.00417.83
8.1.110.0040.00417.73
8.1.100.0040.00417.54
8.1.90.0040.00417.66
8.1.80.0000.00717.73
8.1.70.0070.00017.72
8.1.60.0080.00017.67
8.1.50.0040.00417.93
8.1.40.0000.00817.89
8.1.30.0000.00718.02
8.1.20.0050.00317.90
8.1.10.0040.00417.79
8.1.00.0090.00617.95
8.0.300.0000.00720.35
8.0.290.0040.00417.43
8.0.280.0070.00018.73
8.0.270.0090.00317.61
8.0.260.0000.00818.77
8.0.250.0000.00917.45
8.0.240.0050.00317.16
8.0.230.0040.00417.32
8.0.220.0070.00017.31
8.0.210.0070.00017.08
8.0.200.0030.00317.39
8.0.190.0040.00417.35
8.0.180.0050.00217.34
8.0.170.0040.00417.10
8.0.160.0070.00017.31
8.0.150.0000.00817.25
8.0.140.0030.00517.32
8.0.130.0000.00613.69
8.0.120.0050.00317.18
8.0.110.0000.00817.11
8.0.100.0040.00417.16
8.0.90.0040.00417.26
8.0.80.0060.01017.22
8.0.70.0040.00417.16
8.0.60.0000.00717.27
8.0.50.0030.00517.20
8.0.30.0130.00817.54
8.0.20.0150.00317.59
8.0.10.0040.00417.48
8.0.00.0160.00817.11
7.4.330.0030.00317.05
7.4.320.0030.00316.88
7.4.300.0070.00316.90
7.4.290.0040.00416.74
7.4.280.0090.00016.84
7.4.270.0070.00016.92
7.4.260.0000.00513.66
7.4.250.0030.00616.83
7.4.240.0000.00716.84
7.4.230.0000.00716.66
7.4.220.0110.00716.89
7.4.210.0050.01116.87
7.4.200.0000.00717.01
7.4.190.0000.00716.98
7.4.160.0110.00516.99
7.4.150.0170.00717.40
7.4.140.0110.00917.86
7.4.130.0090.00816.79
7.4.120.0130.00516.92
7.4.110.0130.01016.71
7.4.100.0030.01516.80
7.4.90.0120.01216.93
7.4.80.0120.01219.39
7.4.70.0040.01216.88
7.4.60.0070.01016.92
7.4.50.0030.00316.73
7.4.40.0040.01422.77
7.4.30.0090.01316.79
7.4.00.0120.00515.25
7.3.330.0060.00013.62
7.3.320.0050.00013.62
7.3.310.0030.00316.48
7.3.300.0040.00416.59
7.3.290.0070.00716.75
7.3.280.0090.00716.80
7.3.270.0110.00717.40
7.3.260.0140.00518.24
7.3.250.0110.00616.90
7.3.240.0110.00616.91
7.3.230.0100.00716.77
7.3.210.0130.00316.79
7.3.200.0120.00919.39
7.3.190.0030.01416.82
7.3.180.0100.00716.77
7.3.170.0000.01616.92
7.3.160.0070.01016.77
7.3.120.0030.01414.96
7.3.110.0110.00715.27
7.3.100.0000.01015.26
7.3.90.0040.00415.12
7.3.80.0000.01515.20
7.3.70.0090.00015.02
7.3.60.0060.00614.88
7.3.50.0070.00714.86
7.3.40.0090.00614.91
7.3.30.0030.00615.14
7.3.20.0030.01016.75
7.3.10.0030.00916.72
7.3.00.0130.00316.71
7.2.330.0130.00316.84
7.2.320.0090.00916.96
7.2.310.0160.00417.04
7.2.300.0110.00617.10
7.2.290.0000.01716.69
7.2.250.0100.01015.07
7.2.240.0090.00914.85
7.2.230.0040.01115.32
7.2.220.0030.01215.27
7.2.210.0070.00314.82
7.2.200.0000.01515.20
7.2.190.0040.00815.02
7.2.180.0120.00315.14
7.2.170.0070.00715.12
7.2.60.0060.00916.89
7.2.00.0040.01219.62
7.1.330.0030.01015.90
7.1.320.0070.00716.02
7.1.310.0090.00616.11
7.1.300.0040.01115.93
7.1.290.0060.00915.96
7.1.280.0080.00415.92
7.1.270.0030.01015.89
7.1.260.0030.00915.92
7.1.200.0090.00316.02
7.1.70.0040.00417.36
7.1.60.0070.00317.36
7.1.50.0070.00317.06
7.1.40.0040.00816.77
7.1.30.0070.00716.70
7.1.20.0000.01316.89
7.1.10.0040.00716.96
7.1.00.0000.00816.93
7.0.200.0030.00316.82
7.0.190.0040.00417.00
7.0.180.0060.00316.45
7.0.170.0040.00416.45
7.0.160.0000.00816.46
7.0.150.0000.00916.45
7.0.140.0030.00516.62
7.0.130.0090.00316.71
7.0.120.0160.00616.64
7.0.110.0530.01014.88
7.0.100.0280.00414.88
7.0.90.0100.00714.91
7.0.80.0200.00316.60
7.0.70.0200.00316.48
7.0.60.0220.00016.50
7.0.50.0170.00616.57
7.0.40.0060.00414.89
7.0.30.0000.01114.88
7.0.20.0000.00814.88
7.0.10.0040.00414.88
7.0.00.0050.00314.88
5.6.300.0070.04120.98
5.6.290.0000.04521.04
5.6.280.0000.05421.28
5.6.270.0070.04221.06
5.6.260.0100.04321.05
5.6.250.0060.04521.14
5.6.240.0030.04721.05
5.6.230.0070.04421.03
5.6.220.0070.04221.00
5.6.210.0100.04421.10
5.6.200.0100.04721.23
5.6.190.0100.03921.10
5.6.180.0100.04721.09
5.6.170.0100.03621.06
5.6.160.0100.05021.11
5.6.150.0130.04920.98
5.6.140.0070.04520.97
5.6.130.0100.04721.10
5.6.120.0030.05621.01
5.6.110.0130.03621.07
5.6.100.0090.04721.09
5.6.90.0070.04521.02
5.6.80.0080.04520.61
5.6.70.0070.04520.25
5.6.60.0130.08820.60
5.6.50.0030.04820.39
5.6.40.0030.06920.21
5.6.30.0060.08320.48
5.6.20.0030.04720.21
5.6.10.0110.03920.59
5.6.00.0070.03920.28
5.5.380.0000.04717.55
5.5.370.0030.04717.59
5.5.360.0070.04517.50
5.5.350.0130.03517.57
5.5.340.0190.04118.18
5.5.330.0070.04718.27
5.5.320.0030.04718.26
5.5.310.0030.04517.98
5.5.300.0030.04618.07
5.5.290.0000.06118.23
5.5.280.0070.03918.20
5.5.270.0100.05418.10
5.5.260.0070.03817.98
5.5.250.0000.07817.98
5.5.240.0160.04217.47
5.5.230.0100.04017.46
5.5.220.0070.05817.59
5.5.210.0100.04517.50
5.5.200.0130.03017.46
5.5.190.0100.03417.47
5.5.180.0060.04117.34
5.5.160.0070.03717.52
5.5.150.0000.04517.33
5.5.140.0090.03817.43
5.5.130.0060.03617.62
5.5.120.0070.03717.54
5.5.110.0030.04117.57
5.5.100.0070.04517.47
5.5.90.0100.03817.52
5.5.80.0060.03917.49
5.5.70.0070.06417.33
5.5.60.0100.03217.48
5.5.50.0000.04217.50
5.5.40.0070.03617.43
5.5.30.0100.03317.32
5.5.20.0200.05317.41
5.5.10.0000.07217.18
5.5.00.0070.04217.49
5.4.450.0170.03119.52
5.4.440.0130.03319.52
5.4.430.0150.03719.49
5.4.420.0070.04419.58
5.4.410.0130.03319.41
5.4.400.0070.04019.26
5.4.390.0130.04219.14
5.4.380.0070.03719.19
5.4.370.0070.03619.19
5.4.360.0130.03519.19
5.4.350.0070.07819.09
5.4.340.0030.04719.22
5.4.320.0060.04519.23
5.4.310.0060.03919.25
5.4.300.0070.03719.14
5.4.290.0130.03619.06
5.4.280.0060.03719.06
5.4.270.0000.04419.27
5.4.260.0030.04319.27
5.4.250.0120.03119.19
5.4.240.0040.04319.22
5.4.230.0070.05819.14
5.4.220.0070.04019.21
5.4.210.0030.04019.26
5.4.200.0070.04519.14
5.4.190.0070.03619.23
5.4.180.0070.07319.03
5.4.170.0060.04119.14
5.4.160.0070.03819.18
5.4.150.0130.03119.28
5.4.140.0030.06416.77
5.4.130.0090.03116.58
5.4.120.0070.03616.79
5.4.110.0030.04316.77
5.4.100.0030.03916.87
5.4.90.0070.03316.49
5.4.80.0000.06416.73
5.4.70.0060.03516.67
5.4.60.0000.04116.87
5.4.50.0060.03216.67
5.4.40.0070.03716.94
5.4.30.0070.07416.81
5.4.20.0100.03216.52
5.4.10.0070.03716.66
5.4.00.0030.03716.25
5.3.290.0000.04314.95
5.3.280.0070.04014.97
5.3.270.0030.04214.93
5.3.260.0030.05214.90
5.3.250.0030.05114.88
5.3.240.0000.04314.89
5.3.230.0030.04714.93
5.3.220.0100.04714.89
5.3.210.0030.03914.94
5.3.200.0070.03514.88
5.3.190.0030.03814.89
5.3.180.0000.04814.88
5.3.170.0000.04114.88
5.3.160.0000.04214.88
5.3.150.0030.07614.88
5.3.140.0030.04114.88
5.3.130.0030.06914.88
5.3.120.0070.03614.88
5.3.110.0100.05214.88
5.3.100.0130.04214.88
5.3.90.0030.04014.88
5.3.80.0000.04114.88
5.3.70.0070.03314.88
5.3.60.0060.03514.88
5.3.50.0030.03814.88
5.3.40.0070.03914.88
5.3.30.0100.03314.88
5.3.20.0000.03914.88
5.3.10.0100.03614.88
5.3.00.0030.05314.88
5.2.170.0100.04614.88
5.2.160.0030.04414.88
5.2.150.0070.02714.88
5.2.140.0030.03514.88
5.2.130.0030.05514.88
5.2.120.0070.03614.88
5.2.110.0030.04814.88
5.2.100.0000.03114.88
5.2.90.0030.02914.88
5.2.80.0070.03014.88
5.2.70.0100.02914.88
5.2.60.0000.04714.88
5.2.50.0110.03514.88
5.2.40.0070.02714.88
5.2.30.0100.05114.88
5.2.20.0070.06314.88
5.2.10.0030.03014.88
5.2.00.0070.02814.88
5.1.60.0040.02514.88
5.1.50.0000.03014.88
5.1.40.0030.02514.88
5.1.30.0030.02614.88
5.1.20.0030.02814.88
5.1.10.0000.03114.88
5.1.00.0030.02714.88
5.0.50.0000.02814.88
5.0.40.0060.01914.88
5.0.30.0030.03514.88
5.0.20.0000.02014.88
5.0.10.0030.04714.88
5.0.00.0030.05314.88
4.4.90.0000.01614.88
4.4.80.0030.03814.88
4.4.70.0040.02214.88
4.4.60.0000.01914.88
4.4.50.0030.01414.88
4.4.40.0100.02014.88
4.4.30.0000.01714.88
4.4.20.0000.01814.88
4.4.10.0000.02114.88
4.4.00.0000.03214.88
4.3.110.0030.01714.88
4.3.100.0030.01414.88
4.3.90.0030.03914.88
4.3.80.0000.02814.88
4.3.70.0000.01814.88
4.3.60.0000.01814.88
4.3.50.0030.01614.88
4.3.40.0040.02514.88
4.3.30.0070.01414.88
4.3.20.0000.01814.88
4.3.10.0000.01814.88
4.3.00.0000.01714.88

preferences:
41.83 ms | 400 KiB | 5 Q