3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<root> <parent name="Peter"> <child age="20">James</child> <child age="5">Leila</child> </parent> <parent name="Anna"> <child age="10">Dido</child> <child age="11">George</child> </parent> </root>'; $xmlElement = new SimpleXMLElement($xml); $teens = $xmlElement->xpath('//child[@age>9]'); print $teens[1];

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.0080.00818.55
8.3.50.0050.01222.25
8.3.40.0110.01119.20
8.3.30.0090.00619.37
8.3.20.0000.00820.85
8.3.10.0080.00024.02
8.3.00.0080.00021.34
8.2.180.0040.01117.00
8.2.170.0150.00622.96
8.2.160.0100.01020.85
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.01221.34
8.2.110.0040.00422.79
8.2.100.0090.00318.22
8.2.90.0040.00419.60
8.2.80.0000.00817.97
8.2.70.0080.00318.25
8.2.60.0040.00418.30
8.2.50.0060.00318.13
8.2.40.0000.00818.72
8.2.30.0060.00618.69
8.2.20.0020.00518.21
8.2.10.0000.00818.57
8.2.00.0040.00418.07
8.1.280.0140.00725.92
8.1.270.0000.00922.51
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00324.29
8.1.230.0000.01019.54
8.1.220.0040.00418.16
8.1.210.0060.00318.77
8.1.200.0040.00417.47
8.1.190.0000.00817.49
8.1.180.0040.00418.10
8.1.170.0000.00818.95
8.1.160.0000.00822.41
8.1.150.0040.00418.89
8.1.140.0040.00417.70
8.1.130.0030.00318.23
8.1.120.0000.00717.78
8.1.110.0040.00417.79
8.1.100.0050.00317.93
8.1.90.0080.00017.67
8.1.80.0050.00317.89
8.1.70.0070.00017.86
8.1.60.0050.00517.87
8.1.50.0000.00817.71
8.1.40.0000.00817.74
8.1.30.0060.00317.99
8.1.20.0000.00817.89
8.1.10.0000.00818.14
8.1.00.0040.00417.99
8.0.300.0030.00618.77
8.0.290.0070.00017.00
8.0.280.0000.00718.95
8.0.270.0030.00317.56
8.0.260.0030.00317.76
8.0.250.0040.00417.47
8.0.240.0040.00417.20
8.0.230.0000.00717.37
8.0.220.0000.00717.22
8.0.210.0030.00317.13
8.0.200.0040.00417.12
8.0.190.0040.00817.46
8.0.180.0000.00817.41
8.0.170.0050.00317.35
8.0.160.0060.00317.37
8.0.150.0040.00417.11
8.0.140.0000.00717.35
8.0.130.0030.00313.64
8.0.120.0050.00217.30
8.0.110.0000.00717.40
8.0.100.0040.00417.25
8.0.90.0000.00717.37
8.0.80.0070.00717.21
8.0.70.0080.00017.26
8.0.60.0000.00817.29
8.0.50.0000.00817.20
8.0.30.0120.00717.60
8.0.20.0080.01117.56
8.0.10.0000.00717.31
8.0.00.0080.01117.17
7.4.330.0030.00315.64
7.4.320.0030.00316.90
7.4.300.0030.00316.90
7.4.290.0030.00516.93
7.4.280.0060.00317.01
7.4.270.0080.00016.98
7.4.260.0030.00616.81
7.4.250.0050.00216.94
7.4.240.0040.00316.95
7.4.230.0040.00417.02
7.4.220.0090.00916.85
7.4.210.0120.00616.90
7.4.200.0040.00417.05
7.4.160.0160.00016.81
7.4.150.0100.00717.40
7.4.140.0100.00917.86
7.4.130.0140.00416.90
7.4.120.0100.00816.83
7.4.110.0100.01016.81
7.4.100.0170.00816.91
7.4.90.0120.00616.87
7.4.80.0110.01419.39
7.4.70.0070.01017.06
7.4.60.0130.00616.79
7.4.50.0000.00616.92
7.4.40.0070.01016.76
7.4.30.0080.00816.71
7.4.00.0060.00614.92
7.3.330.0000.00713.54
7.3.320.0000.00513.63
7.3.310.0050.00316.83
7.3.300.0030.00316.60
7.3.290.0030.01716.70
7.3.280.0110.00516.61
7.3.270.0100.00717.40
7.3.260.0080.00816.71
7.3.250.0080.01216.83
7.3.240.0100.00716.59
7.3.230.0060.01216.55
7.3.210.0170.00016.76
7.3.200.0110.00719.39
7.3.190.0130.01016.50
7.3.180.0060.00916.61
7.3.170.0120.00916.65
7.3.160.0130.00317.00
7.3.120.0150.00315.12
7.3.110.0120.00615.19
7.3.100.0030.01314.93
7.3.90.0040.00715.14
7.3.80.0030.01015.19
7.3.70.0080.00814.92
7.3.60.0030.00614.66
7.3.50.0000.01614.97
7.3.40.0030.00614.84
7.3.30.0100.00015.01
7.3.20.0000.01716.84
7.3.10.0040.00816.98
7.3.00.0110.00316.99
7.2.330.0140.01016.70
7.2.320.0030.01416.70
7.2.310.0100.00717.16
7.2.300.0120.00616.62
7.2.290.0030.01616.95
7.2.240.0070.01015.23
7.2.230.0000.01315.18
7.2.220.0050.00514.95
7.2.210.0080.00815.57
7.2.200.0060.00615.20
7.2.190.0070.00315.24
7.2.180.0130.00315.44
7.2.170.0080.00415.25
7.2.160.0040.00715.16
7.2.150.0030.01417.16
7.2.140.0120.00317.17
7.2.130.0030.00717.00
7.2.120.0070.00716.93
7.2.110.0440.00416.89
7.2.100.0080.00417.16
7.2.90.0120.00617.22
7.2.80.0060.01017.08
7.2.70.0070.01017.38
7.2.60.0070.00417.16
7.2.50.0080.00317.31
7.2.40.0040.00817.29
7.2.30.0000.01217.07
7.2.20.0080.00817.13
7.2.10.0030.00717.14
7.2.00.0030.01318.35
7.1.330.0060.00915.82
7.1.320.0110.00016.13
7.1.310.0100.00315.97
7.1.300.0070.00715.82
7.1.290.0060.00615.99
7.1.280.0030.01015.94
7.1.270.0070.00716.09
7.1.260.0000.01116.03
7.1.250.0040.01115.96
7.1.200.0060.00616.20
7.1.100.0000.01318.45
7.1.70.0060.01217.43
7.1.60.0070.01619.70
7.1.50.0070.00716.94
7.1.00.0030.07722.79
7.0.200.0050.00316.87
7.0.140.0070.07022.44
7.0.60.0170.07720.42
7.0.50.0100.07318.27
7.0.40.0100.07320.33
7.0.30.0230.07320.50
7.0.20.0200.07020.52
7.0.10.0030.04720.45
7.0.00.0000.05020.32
5.6.280.0030.07721.57
5.6.210.0070.08320.87
5.6.200.0000.04718.55
5.6.190.0000.05020.69
5.6.180.3870.05020.94
5.6.170.0300.07020.71
5.6.160.0070.06320.91
5.6.150.0030.08318.58
5.6.140.0070.06018.50
5.6.130.0100.07718.49
5.6.120.0170.07321.42
5.6.110.0070.04021.36
5.6.100.0170.06021.35
5.6.90.0230.06721.42
5.6.80.0100.08020.81
5.6.70.3400.04020.74
5.5.350.0270.07720.77
5.5.340.0130.06018.28
5.5.330.0100.04020.58
5.5.320.3430.03720.73
5.5.310.0170.05720.52
5.5.300.0130.06018.39
5.5.290.0000.08718.31
5.5.280.0130.07321.20
5.5.270.0070.09321.15
5.5.260.0100.03321.34
5.5.250.0130.05020.98
5.5.240.0170.06020.54
5.4.450.0130.05319.84
5.4.440.0030.04719.66
5.4.430.0100.07719.76
5.4.420.0030.05719.84
5.4.410.0070.04719.71
5.4.400.0070.06319.43
5.4.390.0030.03719.38
5.4.380.0030.03719.09
5.4.370.0000.04019.06
5.4.360.0030.04319.07
5.4.350.0000.04719.52
5.4.340.0070.03319.07
5.4.320.0030.04019.42
5.4.310.0000.04719.42
5.4.300.0100.03019.41
5.4.290.0030.03719.52
5.4.280.0070.03319.51
5.4.270.0030.04019.02
5.4.260.0070.03319.07
5.4.250.0030.03719.06
5.4.240.0070.03319.51
5.4.230.0070.04719.06
5.4.220.0070.04019.51
5.4.210.0000.04019.48
5.4.200.0070.03319.34
5.4.190.0030.03719.24
5.4.180.0030.03719.42
5.4.170.0030.03719.50
5.4.160.0000.04719.39
5.4.150.0000.04719.34
5.4.140.0030.07016.70
5.4.130.0000.03716.73
5.4.120.0170.04016.66
5.4.110.0070.04016.64
5.4.100.0100.07016.73
5.4.90.0100.04316.65
5.4.80.0030.03316.68
5.4.70.0070.07016.66
5.4.60.0030.04716.64
5.4.50.0030.07716.70
5.4.40.0070.07016.63
5.4.30.0100.06716.57
5.4.20.0030.04016.60
5.4.10.0000.05316.67
5.4.00.0030.07016.24
5.3.290.0000.04015.04
5.3.280.0100.03014.80
5.3.270.0100.03014.86
5.3.260.0030.04314.74
5.3.250.0030.06714.90
5.3.240.0070.04014.74
5.3.230.0030.07314.75
5.3.220.0000.04714.85
5.3.210.0000.05014.89
5.3.200.0000.04014.81
5.3.190.0100.07314.77
5.3.180.0000.04014.84
5.3.170.0100.07014.77
5.3.160.0000.04014.72
5.3.150.0000.04014.72
5.3.140.0030.05714.88
5.3.130.0200.06014.77
5.3.120.0030.07014.83
5.3.110.0070.07714.68
5.3.100.0070.07314.21
5.3.90.0100.07314.30
5.3.80.0070.07314.16
5.3.70.0070.04314.18
5.3.60.0100.07314.23
5.3.50.0100.06714.21
5.3.40.0070.07314.11
5.3.30.0100.05714.23
5.3.20.0070.06714.02
5.3.10.0030.05013.79
5.3.00.0070.07013.91
5.2.170.0030.07011.39
5.2.160.0030.03711.46
5.2.150.0070.05711.45
5.2.140.0100.03711.50
5.2.130.0070.05711.32
5.2.120.0030.04711.46
5.2.110.0070.06011.43
5.2.100.0100.05711.38
5.2.90.0070.03311.53
5.2.80.0030.06311.37
5.2.70.0070.06011.26
5.2.60.0200.05011.33
5.2.50.0030.05711.29
5.2.40.0070.03711.26
5.2.30.0070.05311.20
5.2.20.0100.03311.33
5.2.10.0170.03711.05
5.2.00.0030.05711.14
5.1.60.0030.05310.16
5.1.50.0070.04010.38
5.1.40.0030.03310.28
5.1.30.0100.05010.52
5.1.20.0030.05710.73
5.1.10.0100.05310.47
5.1.00.0100.04710.33
5.0.50.0030.0408.71
5.0.40.0070.0438.57
5.0.30.0000.0638.50
5.0.20.0070.0238.48
5.0.10.0070.0438.39
5.0.00.0000.0638.57
4.4.90.0030.0178.05
4.4.80.0000.0378.05
4.4.70.0000.0208.05
4.4.60.0030.0178.05
4.4.50.0030.0238.05
4.4.40.0070.0538.05
4.4.30.0000.0378.05
4.4.20.0000.0338.05
4.4.10.0000.0208.05
4.4.00.0070.0438.05
4.3.110.0000.0238.05
4.3.100.0030.0278.05
4.3.90.0070.0308.05
4.3.80.0070.0508.05
4.3.70.0030.0338.05
4.3.60.0000.0338.05
4.3.50.0000.0308.05
4.3.40.0000.0538.05
4.3.30.0000.0378.05
4.3.20.0000.0238.05
4.3.10.0030.0308.05
4.3.00.0000.0338.05

preferences:
37.35 ms | 401 KiB | 5 Q