3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> <child name='Child1' /> <child name='Child2' /> <subparent> <child name='Child3' /> </subparent> </parent> <child name='Child4' /> </root>"; $xml = simplexml_load_string( $xml); $node = $xml->xpath( './/child[@name="Child2"]/*'); 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.0090.01218.93
8.3.50.0160.00922.08
8.3.40.0170.00318.86
8.3.30.0110.00319.20
8.3.20.0090.00020.46
8.3.10.0000.00823.81
8.3.00.0040.01219.60
8.2.180.0070.00718.54
8.2.170.0120.00322.96
8.2.160.0030.01020.51
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00422.46
8.2.110.0040.00821.55
8.2.100.0110.00018.03
8.2.90.0030.00519.51
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0060.00318.30
8.2.50.0030.00618.07
8.2.40.0080.00018.47
8.2.30.0050.00318.37
8.2.20.0040.00417.93
8.2.10.0080.00018.58
8.2.00.0000.00818.14
8.1.280.0100.00725.92
8.1.270.0030.00522.44
8.1.260.0000.00826.35
8.1.250.0020.00528.09
8.1.240.0030.00622.44
8.1.230.0110.00419.14
8.1.220.0060.00317.93
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0000.00817.48
8.1.180.0050.00318.10
8.1.170.0050.00320.68
8.1.160.0040.00422.29
8.1.150.0040.00419.20
8.1.140.0060.00317.66
8.1.130.0040.00419.99
8.1.120.0030.00317.76
8.1.110.0050.00317.84
8.1.100.0000.00717.73
8.1.90.0040.00417.77
8.1.80.0070.00017.80
8.1.70.0040.00417.76
8.1.60.0040.00417.73
8.1.50.0040.00417.91
8.1.40.0000.00717.63
8.1.30.0050.00318.02
8.1.20.0040.00417.77
8.1.10.0080.00017.71
8.1.00.0060.00317.90
8.0.300.0090.00022.28
8.0.290.0040.00416.88
8.0.280.0030.00318.82
8.0.270.0030.00317.59
8.0.260.0000.00817.48
8.0.250.0000.00717.46
8.0.240.0000.00717.18
8.0.230.0000.00717.27
8.0.220.0030.00317.25
8.0.210.0000.00717.13
8.0.200.0060.00017.34
8.0.190.0040.00417.38
8.0.180.0050.00317.06
8.0.170.0080.00017.34
8.0.160.0030.00317.31
8.0.150.0040.00417.04
8.0.140.0040.00417.02
8.0.130.0000.00613.70
8.0.120.0040.00417.29
8.0.110.0040.00417.28
8.0.100.0070.00017.30
8.0.90.0050.00217.19
8.0.80.0100.01017.23
8.0.70.0080.00017.13
8.0.60.0040.00417.19
8.0.50.0050.00217.28
8.0.30.0090.01017.49
8.0.20.0190.00817.48
8.0.10.0040.00417.47
8.0.00.0090.01017.10
7.4.330.0000.00815.02
7.4.320.0030.00316.82
7.4.300.0000.00616.83
7.4.290.0000.00716.95
7.4.280.0030.00516.91
7.4.270.0040.00416.86
7.4.260.0000.00716.79
7.4.250.0080.00016.81
7.4.240.0040.00316.83
7.4.230.0030.00316.99
7.4.220.0090.00916.71
7.4.210.0080.01116.75
7.4.200.0020.00516.72
7.4.160.0070.01516.82
7.4.150.0110.00817.40
7.4.140.0130.00617.86
7.4.130.0120.00716.79
7.4.120.0100.01016.92
7.4.110.0120.01216.84
7.4.100.0100.00716.86
7.4.90.0080.01416.89
7.4.80.0150.00419.39
7.4.70.0130.00916.80
7.4.60.0060.01016.73
7.4.50.0030.00616.55
7.4.40.0210.00316.81
7.4.30.0090.00616.90
7.4.00.0120.00514.95
7.3.330.0000.00513.48
7.3.320.0000.00513.23
7.3.310.0030.00316.54
7.3.300.0000.00716.69
7.3.290.0060.01016.65
7.3.280.0070.01016.57
7.3.270.0130.00617.40
7.3.260.0070.01116.64
7.3.250.0110.01116.86
7.3.240.0090.00616.65
7.3.230.0090.00916.55
7.3.210.0100.00616.64
7.3.200.0090.00919.39
7.3.190.0130.01016.70
7.3.180.0120.00616.84
7.3.170.0080.00816.75
7.3.160.0000.01516.95
7.3.120.0110.00714.84
7.3.110.0040.01414.85
7.3.100.0040.00715.07
7.3.90.0000.01414.57
7.3.80.0070.00714.78
7.3.70.0030.00714.81
7.3.60.0040.00814.75
7.3.50.0030.00715.02
7.3.40.0040.01214.54
7.3.30.0030.00615.02
7.3.20.0030.00616.75
7.3.10.0040.00816.96
7.3.00.0100.00316.52
7.2.330.0120.00916.60
7.2.320.0070.01016.63
7.2.310.0120.00716.90
7.2.300.0000.01516.76
7.2.290.0030.01417.02
7.2.250.0060.01315.24
7.2.240.0150.00615.31
7.2.230.0100.00714.97
7.2.220.0070.00314.97
7.2.210.0100.00315.25
7.2.200.0030.00715.22
7.2.190.0030.00614.92
7.2.180.0000.01514.92
7.2.170.0030.01315.05
7.2.130.0130.00316.84
7.2.120.0140.00516.97
7.2.110.0200.00316.97
7.2.100.0090.01216.88
7.2.90.0060.01216.94
7.2.80.0060.01317.07
7.2.70.0100.01317.13
7.2.60.0130.00416.62
7.2.50.0140.00917.00
7.2.40.0130.00816.55
7.2.30.0110.00816.57
7.2.20.0080.01116.92
7.2.10.0150.00616.86
7.2.00.0080.00818.14
7.1.330.0110.00415.85
7.1.320.0030.00715.95
7.1.310.0070.01115.88
7.1.300.0030.01015.69
7.1.290.0080.00815.93
7.1.280.0100.00716.02
7.1.270.0090.00615.83
7.1.260.0090.00615.91
7.1.250.0110.00615.71
7.1.240.0140.01115.93
7.1.230.0170.00015.68
7.1.220.0150.00315.88
7.1.210.0140.00615.84
7.1.200.0080.00515.96
7.1.190.0080.01015.95
7.1.180.0180.00416.10
7.1.170.0180.00015.81
7.1.160.0130.00515.62
7.1.150.0160.00616.02
7.1.140.0090.00815.88
7.1.130.0140.00315.91
7.1.120.0100.00515.68
7.1.110.0120.00315.74
7.1.100.0080.00416.97
7.1.90.0090.00715.66
7.1.80.0140.00416.15
7.1.70.0070.00816.45
7.1.60.0070.01317.65
7.1.50.0120.00916.33
7.1.40.0130.00615.77
7.1.30.0120.00415.95
7.1.20.0050.01015.92
7.1.10.0120.00615.84
7.1.00.0120.03719.24
7.0.330.0030.01215.36
7.0.320.0140.00415.51
7.0.310.0110.00815.51
7.0.300.0130.00215.33
7.0.290.0070.01415.57
7.0.280.0140.00515.37
7.0.270.0080.00815.41
7.0.260.0120.00415.65
7.0.250.0140.00315.58
7.0.240.0100.00515.85
7.0.230.0150.00415.53
7.0.220.0140.00315.61
7.0.210.0100.00615.65
7.0.200.0040.00716.12
7.0.190.0140.00315.65
7.0.180.0100.00715.57
7.0.170.0180.00015.59
7.0.160.0030.01215.73
7.0.150.0150.00615.54
7.0.140.0090.03519.02
7.0.130.0100.00715.81
7.0.120.0090.00915.75
7.0.110.0100.02217.89
7.0.100.0080.02117.81
7.0.90.0070.02518.02
7.0.80.0120.03517.78
7.0.70.0080.02317.86
7.0.60.0060.02717.94
7.0.50.0070.02217.82
7.0.40.0060.03716.84
7.0.30.0060.02316.71
7.0.20.0090.02416.77
7.0.10.0110.02016.75
7.0.00.0030.02916.81
5.6.380.0050.00914.53
5.6.370.0060.00614.33
5.6.360.0060.00614.28
5.6.350.0050.00814.76
5.6.340.0060.00614.56
5.6.330.0120.00014.43
5.6.320.0030.00914.41
5.6.310.0040.00814.50
5.6.300.0100.01014.69
5.6.290.0100.00614.40
5.6.280.0130.03417.74
5.6.270.0110.00614.27
5.6.260.0050.02717.78
5.6.250.0090.02717.52
5.6.240.0080.03917.50
5.6.230.0070.04417.54
5.6.220.0070.02317.50
5.6.210.0030.02317.70
5.6.200.0020.03517.54
5.6.190.0050.02117.61
5.6.180.0120.02717.50
5.6.170.0030.03017.45
5.6.160.0090.02917.67
5.6.150.0080.02017.77
5.6.140.0070.02117.60
5.6.130.0030.02217.49
5.6.120.0080.02817.54
5.6.110.0050.02017.69
5.6.100.0050.04317.46
5.6.90.0050.02417.54
5.6.80.0050.02717.29
5.6.70.0070.03717.25
5.6.60.0020.02217.09
5.6.50.0030.04517.15
5.6.40.0070.03217.19
5.6.30.0050.02717.17
5.6.20.0050.02717.35
5.6.10.0050.04317.07
5.6.00.0080.03017.14
5.5.380.0090.03514.43
5.5.370.0040.03914.57
5.5.360.0050.02914.37
5.5.350.0050.04314.41
5.5.340.0050.02614.70
5.5.330.0050.03514.68
5.5.320.0080.03514.72
5.5.310.0030.02314.64
5.5.300.0000.02214.82
5.5.290.0030.02914.65
5.5.280.0020.02214.64
5.5.270.0050.04014.83
5.5.260.0080.04114.60
5.5.250.0050.03014.59
5.5.240.0050.02214.24
5.5.230.0050.03814.43
5.5.220.0030.03114.35
5.5.210.0050.03514.29
5.5.200.0080.04214.14
5.5.190.0050.02314.15
5.5.180.0050.04314.21
5.5.170.0030.00810.81
5.5.160.0040.02514.26
5.5.150.0020.02414.18
5.5.140.0090.02714.37
5.5.130.0100.03214.33
5.5.120.0040.02614.12
5.5.110.0060.03914.29
5.5.100.0090.03014.24
5.5.90.0020.03214.22
5.5.80.0070.03714.33
5.5.70.0070.03713.99
5.5.60.0060.01714.24
5.5.50.0030.02014.22
5.5.40.0000.04114.27
5.5.30.0110.02214.01
5.5.20.0060.02014.29
5.5.10.0000.02314.09
5.5.00.0040.02414.22
5.4.450.0080.01715.30
5.4.440.0050.03115.30
5.4.430.0040.03315.37
5.4.420.0050.04315.35
5.4.410.0050.01815.16
5.4.400.0050.01915.07
5.4.390.0030.02915.09
5.4.380.0020.02415.26
5.4.370.0050.02215.13
5.4.360.0030.02515.25
5.4.350.0100.03015.15
5.4.340.0050.04015.17
5.4.330.0060.00010.87
5.4.320.0050.03215.18
5.4.310.0040.04115.23
5.4.300.0080.03415.23
5.4.290.0060.02815.06
5.4.280.0000.02715.18
5.4.270.0050.04315.13
5.4.260.0020.02515.14
5.4.250.0030.03514.97
5.4.240.0050.02614.97
5.4.230.0030.02015.14
5.4.220.0050.03815.04
5.4.210.0050.02115.18
5.4.200.0070.02215.24
5.4.190.0070.03715.17
5.4.180.0020.02215.00
5.4.170.0030.02314.94
5.4.160.0070.02814.98
5.4.150.0060.02115.10
5.4.140.0050.01913.79
5.4.130.0080.01513.93
5.4.120.0050.01813.70
5.4.110.0050.01813.60
5.4.100.0040.01913.83
5.4.90.0050.02213.74
5.4.80.0060.01813.80
5.4.70.0050.02013.91
5.4.60.0070.01713.97
5.4.50.0030.02013.87
5.4.40.0000.02213.82
5.4.30.0030.02413.78
5.4.20.0040.01813.75
5.4.10.0050.03213.85
5.4.00.0070.03213.51
5.3.290.0030.04212.78
5.3.280.0030.02312.71
5.3.270.0030.02012.73
5.3.260.0030.02012.65
5.3.250.0030.02512.58
5.3.240.0030.02812.61
5.3.230.0020.02612.65
5.3.220.0050.02012.52
5.3.210.0060.02112.58
5.3.200.0020.02012.62
5.3.190.0050.01812.55
5.3.180.0000.02312.67
5.3.170.0000.02312.68
5.3.160.0020.02312.65
5.3.150.0030.02312.63
5.3.140.0070.02012.59
5.3.130.0030.03512.65
5.3.120.0070.02312.63
5.3.110.0050.02212.54
5.3.100.0000.02412.34
5.3.90.0060.03412.44
5.3.80.0000.03412.25
5.3.70.0020.02512.17
5.3.60.0060.01912.36
5.3.50.0010.02312.13
5.3.40.0010.02412.18
5.3.30.0050.01812.30
5.3.20.0070.02012.12
5.3.10.0030.02312.04
5.3.00.0040.02512.16
5.2.170.0070.01610.80
5.2.160.0040.01810.77
5.2.150.0060.01510.70
5.2.140.0000.03210.77
5.2.130.0100.00810.78
5.2.120.0030.02510.79
5.2.110.0030.02510.81
5.2.100.0030.01810.79
5.2.90.0050.03010.75
5.2.80.0040.02810.72
5.2.70.0030.03310.74
5.2.60.0050.01310.75
5.2.50.0020.02910.71
5.2.40.0020.03210.74
5.2.30.0030.03510.77
5.2.20.0040.02210.71
5.2.10.0030.01710.71
5.2.00.0080.01210.68
5.1.60.0000.01610.68
5.1.50.0000.01710.68
5.1.40.0030.02710.68
5.1.30.0030.02510.68
5.1.20.0090.00810.68
5.1.10.0040.01610.68
5.1.00.0030.01310.68
5.0.50.0000.01310.68
5.0.40.0030.00810.68
5.0.30.0000.02010.68
5.0.20.0020.01010.68
5.0.10.0000.02410.68
5.0.00.0020.02310.68
4.4.90.0020.01910.68
4.4.80.0030.00710.68
4.4.70.0030.01010.68
4.4.60.0030.00810.68
4.4.50.0020.01010.68
4.4.40.0000.01410.68
4.4.30.0000.01810.68
4.4.20.0010.01010.68
4.4.10.0010.00810.68
4.4.00.0010.01510.68
4.3.110.0010.00810.68
4.3.100.0020.01010.68
4.3.90.0050.01810.68
4.3.80.0070.01010.68
4.3.70.0000.01610.68
4.3.60.0050.01410.68
4.3.50.0050.01510.68
4.3.40.0000.01410.68
4.3.30.0010.01610.68
4.3.20.0020.02010.68
4.3.10.0020.01210.68
4.3.00.0020.01010.68

preferences:
44.07 ms | 401 KiB | 5 Q