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); foreach( $xml->xpath( './/child') as $child) { echo $attributes['name'] . "\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.0090.00919.22
8.3.30.0100.01019.60
8.3.20.0000.00720.65
8.3.10.0040.00424.03
8.3.00.0000.00821.20
8.2.170.0030.01222.96
8.2.160.0070.01120.83
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00320.11
8.2.110.0040.00422.67
8.2.100.0030.00720.82
8.2.90.0000.00919.60
8.2.80.0040.00418.00
8.2.70.0040.00418.13
8.2.60.0000.00818.54
8.2.50.0080.00318.25
8.2.40.0030.00520.39
8.2.30.0020.00518.70
8.2.20.0000.00818.12
8.2.10.0030.00518.45
8.2.00.0040.00418.20
8.1.270.0040.00422.49
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00024.21
8.1.230.0070.00419.51
8.1.220.0060.00318.04
8.1.210.0030.00618.77
8.1.200.0100.00017.73
8.1.190.0000.00817.60
8.1.180.0030.00518.10
8.1.170.0090.00018.74
8.1.160.0000.00822.32
8.1.150.0090.00019.04
8.1.140.0000.00817.82
8.1.130.0070.00018.15
8.1.120.0030.00417.70
8.1.110.0040.00417.94
8.1.100.0000.00817.81
8.1.90.0070.00017.64
8.1.80.0040.00417.89
8.1.70.0030.00317.70
8.1.60.0070.00317.83
8.1.50.0060.00317.91
8.1.40.0030.00617.88
8.1.30.0000.00818.03
8.1.20.0040.00418.08
8.1.10.0040.00418.01
8.1.00.0080.00018.00
8.0.300.0040.00418.77
8.0.290.0000.00717.13
8.0.280.0050.00318.92
8.0.270.0070.00017.59
8.0.260.0030.00317.72
8.0.250.0030.00317.21
8.0.240.0000.00817.27
8.0.230.0000.00717.19
8.0.220.0080.00017.15
8.0.210.0040.00317.36
8.0.200.0030.00317.29
8.0.190.0060.00317.33
8.0.180.0000.00717.30
8.0.170.0040.00417.18
8.0.160.0030.00317.35
8.0.150.0000.00717.10
8.0.140.0000.00717.22
8.0.130.0070.00013.80
8.0.120.0000.00817.34
8.0.110.0000.00817.29
8.0.100.0080.00017.31
8.0.90.0040.00417.27
8.0.80.0130.00317.47
8.0.70.0040.00417.29
8.0.60.0030.00417.32
8.0.50.0040.00417.33
8.0.30.0070.01317.59
8.0.20.0130.00717.74
8.0.10.0080.00017.41
8.0.00.0130.00817.13
7.4.330.0020.00215.53
7.4.320.0030.00316.88
7.4.300.0000.00716.89
7.4.290.0080.00017.08
7.4.280.0070.00016.91
7.4.270.0080.00016.91
7.4.260.0070.00016.95
7.4.250.0030.00616.96
7.4.240.0020.00516.91
7.4.230.0000.00716.79
7.4.220.0180.00717.05
7.4.210.0080.00816.99
7.4.200.0000.00716.87
7.4.160.0080.00816.88
7.4.150.0090.00917.40
7.4.140.0100.00717.86
7.4.130.0120.00616.88
7.4.120.0110.00617.05
7.4.110.0040.01817.00
7.4.100.0090.00916.86
7.4.90.0100.00716.86
7.4.80.0080.00819.39
7.4.70.0000.01716.85
7.4.60.0030.01416.81
7.4.50.0000.00517.04
7.4.40.0000.01716.84
7.4.30.0100.00716.76
7.4.10.0100.00717.00
7.4.00.0060.01015.69
7.3.330.0030.00313.30
7.3.320.0000.00513.61
7.3.310.0000.00716.70
7.3.300.0000.00716.71
7.3.290.0070.00716.67
7.3.280.0080.00916.63
7.3.270.0120.00817.40
7.3.260.0070.01016.66
7.3.250.0060.01116.67
7.3.240.0050.01417.04
7.3.230.0090.00916.85
7.3.210.0120.01216.75
7.3.200.0100.01319.39
7.3.190.0130.01016.83
7.3.180.0110.00416.71
7.3.170.0100.00716.70
7.3.160.0120.00616.87
7.3.130.0130.00616.65
7.3.120.0120.00615.50
7.3.110.0070.00815.85
7.3.100.0040.00615.78
7.3.90.0050.00915.85
7.3.80.0050.00715.76
7.3.70.0020.00915.94
7.3.60.0070.01015.63
7.3.50.0070.00915.78
7.3.40.0030.00815.75
7.3.30.0090.00315.64
7.3.20.0040.01217.71
7.3.10.0060.00717.60
7.3.00.0040.00917.68
7.2.330.0090.00917.20
7.2.320.0150.00317.19
7.2.310.0070.01017.05
7.2.300.0070.01017.05
7.2.290.0070.01016.98
7.2.260.0080.01216.91
7.2.250.0060.01416.15
7.2.240.0080.00816.16
7.2.230.0050.00816.32
7.2.220.0050.01116.04
7.2.210.0050.00916.20
7.2.200.0070.00916.11
7.2.190.0050.01216.02
7.2.180.0050.00916.14
7.2.170.0090.00616.07
7.2.160.0070.01116.94
7.2.150.0070.00318.66
7.2.140.0110.00418.65
7.2.130.0000.01018.75
7.2.120.0060.00918.84
7.2.110.0060.01117.91
7.2.100.0090.00517.80
7.2.90.0030.01517.67
7.2.80.0090.00717.75
7.2.70.0180.00717.91
7.2.60.0130.00317.96
7.2.50.0100.00617.90
7.2.40.0100.00818.05
7.2.30.0100.01218.07
7.2.20.0080.00918.21
7.2.10.0100.00917.93
7.2.00.0210.00518.10
7.1.330.0060.00816.78
7.1.320.0070.00716.82
7.1.310.0030.00917.02
7.1.300.0020.01516.74
7.1.290.0020.01016.78
7.1.280.0060.00616.88
7.1.270.0040.01116.84
7.1.260.0030.01016.86
7.1.250.0000.00917.79
7.1.240.0060.00817.52
7.1.230.0150.00516.89
7.1.220.0120.00316.62
7.1.210.0090.00416.71
7.1.200.0160.00416.64
7.1.190.0080.00816.86
7.1.180.0110.00616.73
7.1.170.0060.01016.72
7.1.160.0110.00916.78
7.1.150.0090.00916.94
7.1.140.0080.01216.93
7.1.130.0090.01116.88
7.1.120.0110.00416.75
7.1.110.0100.00316.86
7.1.100.0040.00617.27
7.1.90.0250.00416.84
7.1.80.0150.00616.79
7.1.70.0050.00917.03
7.1.60.0160.00917.78
7.1.50.0130.00516.88
7.1.40.0110.00416.86
7.1.30.0090.01016.82
7.1.20.0100.00716.79
7.1.10.0170.00616.91
7.1.00.0080.02918.75
7.0.330.0030.01017.59
7.0.320.0040.00817.29
7.0.310.0100.00616.45
7.0.300.0090.00916.40
7.0.290.0150.00716.42
7.0.280.0070.01016.45
7.0.270.0070.00816.41
7.0.260.0070.00616.42
7.0.250.0100.00816.59
7.0.240.0060.01216.50
7.0.230.0080.00516.32
7.0.220.0120.00616.53
7.0.210.0070.00916.45
7.0.200.0110.00716.70
7.0.190.0080.00616.49
7.0.180.0080.00616.54
7.0.170.0090.00616.40
7.0.160.0090.00516.50
7.0.150.0060.00716.52
7.0.140.0080.02718.35
7.0.130.0090.00316.48
7.0.120.0130.00616.60
7.0.110.0090.00516.53
7.0.100.0150.00216.55
7.0.90.0090.00816.28
7.0.80.0080.01016.43
7.0.70.0080.00916.50
7.0.60.0080.02117.67
7.0.50.0070.01716.90
7.0.40.0130.02116.50
7.0.30.0120.02716.43
7.0.20.0140.02516.38
7.0.10.0100.03316.37
7.0.00.0160.02916.36
5.6.400.0000.01116.23
5.6.390.0070.01116.43
5.6.380.0080.00615.47
5.6.370.0060.01015.54
5.6.360.0060.00815.41
5.6.350.0100.00615.37
5.6.340.0080.00715.56
5.6.330.0020.01315.48
5.6.320.0090.00615.38
5.6.310.0070.00615.19
5.6.300.0060.00815.53
5.6.290.0050.00915.45
5.6.280.0060.03017.40
5.6.270.0120.00315.44
5.6.260.0080.00615.46
5.6.250.0060.00915.35
5.6.240.0070.00615.43
5.6.230.0100.00815.32
5.6.220.0020.01315.36
5.6.210.0070.01717.16
5.6.200.0070.03116.30
5.6.190.0110.03517.04
5.6.180.0150.02517.23
5.6.170.0140.03017.26
5.6.160.0170.02417.05
5.6.150.0170.01517.16
5.6.140.0120.02216.99
5.6.130.0120.02217.24
5.6.120.0130.02417.11
5.6.110.0140.02917.07
5.6.100.0170.02317.11
5.6.90.0180.02817.13
5.6.80.0130.02316.88
5.6.70.0150.02216.77
5.6.60.0110.01917.00
5.6.50.0170.02616.76
5.6.40.0130.02016.83
5.6.30.0110.02716.94
5.6.20.0130.03016.83
5.6.10.0130.03216.77
5.6.00.0130.03016.88
5.5.380.0060.00714.45
5.5.370.0020.01214.41
5.5.360.0080.00714.46
5.5.350.0020.03516.44
5.5.340.0050.02115.64
5.5.330.0130.01716.42
5.5.320.0130.02916.45
5.5.310.0100.01916.37
5.5.300.0140.02216.44
5.5.290.0080.02016.29
5.5.280.0110.02516.41
5.5.270.0150.02816.47
5.5.260.0160.02216.34
5.5.250.0130.02916.29
5.5.240.0130.02516.06
5.5.230.0110.02616.12
5.5.220.0150.02216.21
5.5.210.0140.02416.15
5.5.200.0110.02316.17
5.5.190.0110.02616.16
5.5.180.0130.02016.12
5.5.170.0060.00615.36
5.5.160.0100.02416.20
5.5.150.0140.02416.18
5.5.140.0110.02816.15
5.5.130.0120.03016.22
5.5.120.0110.03016.30
5.5.110.0150.02716.22
5.5.100.0090.03316.02
5.5.90.0120.02916.23
5.5.80.0120.02516.13
5.5.70.0140.02916.04
5.5.60.0110.03216.01
5.5.50.0200.02416.12
5.5.40.0120.02716.15
5.5.30.0120.02816.13
5.5.20.0110.02416.19
5.5.10.0140.02316.07
5.5.00.0130.02916.07
5.4.450.0120.01715.00
5.4.440.0130.02815.03
5.4.430.0150.02614.92
5.4.420.0110.02915.07
5.4.410.0100.02314.93
5.4.400.0120.01914.95
5.4.390.0100.02914.95
5.4.380.0130.02615.05
5.4.370.0090.02715.07
5.4.360.0140.01814.94
5.4.350.0110.02114.79
5.4.340.0130.02614.92
5.4.330.0060.00512.70
5.4.320.0130.02415.04
5.4.310.0060.02014.94
5.4.300.0130.02614.87
5.4.290.0160.02015.00
5.4.280.0140.02614.97
5.4.270.0140.02014.99
5.4.260.0090.01815.04
5.4.250.0110.02014.82
5.4.240.0150.02414.92
5.4.230.0140.02414.85
5.4.220.0130.02814.89
5.4.210.0110.02214.88
5.4.200.0140.02514.84
5.4.190.0120.02814.99
5.4.180.0150.02414.95
5.4.170.0170.02214.96
5.4.160.0120.02215.00
5.4.150.0120.02814.83
5.4.140.0080.02913.92
5.4.130.0100.02614.12
5.4.120.0090.02314.02
5.4.110.0090.02613.92
5.4.100.0170.01414.07
5.4.90.0120.02513.97
5.4.80.0120.02514.08
5.4.70.0120.02014.03
5.4.60.0090.02714.17
5.4.50.0100.02714.09
5.4.40.0110.02614.10
5.4.30.0110.01814.21
5.4.20.0110.02814.09
5.4.10.0110.02914.11
5.4.00.0110.01913.81
5.3.290.0200.02213.82
5.3.280.0120.03113.79
5.3.270.0140.04313.78
5.3.260.0120.02713.82
5.3.250.0230.02313.79
5.3.240.0190.03213.72
5.3.230.0130.04013.77
5.3.220.0120.03313.77
5.3.210.0170.03513.78
5.3.200.0160.03313.78
5.3.190.0150.02813.75
5.3.180.0200.03313.76
5.3.170.0130.03013.77
5.3.160.0180.02713.75
5.3.150.0110.03113.69
5.3.140.0210.02313.77
5.3.130.0150.03513.68
5.3.120.0150.03513.71
5.3.110.0180.03613.70
5.3.100.0140.03713.51
5.3.90.0140.02513.40
5.3.80.0160.03613.52
5.3.70.0150.03913.48
5.3.60.0200.03113.38
5.3.50.0140.03513.37
5.3.40.0130.02813.45
5.3.30.0120.04213.43
5.3.20.0160.03613.32
5.3.10.0200.03013.30
5.3.00.0140.03613.32
5.2.170.0160.01612.46
5.2.160.0160.02612.46
5.2.150.0100.03612.46
5.2.140.0170.02512.46
5.2.130.0100.03512.46
5.2.120.0170.02712.46
5.2.110.0140.01712.46
5.2.100.0160.02712.46
5.2.90.0130.02012.46
5.2.80.0130.02812.46
5.2.70.0110.02412.46
5.2.60.0130.03112.46
5.2.50.0160.02212.46
5.2.40.0110.02312.46
5.2.30.0130.03112.46
5.2.20.0090.02012.46
5.2.10.0120.01912.46
5.2.00.0120.03012.46
5.1.60.0120.01312.46
5.1.50.0150.02512.46
5.1.40.0150.02512.46
5.1.30.0120.01812.46
5.1.20.0120.02812.46
5.1.10.0120.02812.46
5.1.00.0100.01912.46
5.0.50.0080.02012.46
5.0.40.0060.02112.46
5.0.30.0060.03512.46
5.0.20.0080.02212.46
5.0.10.0080.01812.46
5.0.00.0030.03512.46
4.4.90.0070.01812.46
4.4.80.0050.01912.46
4.4.70.0090.01012.46
4.4.60.0020.02412.46
4.4.50.0050.02012.46
4.4.40.0100.01512.46
4.4.30.0030.01712.46
4.4.20.0030.01812.46
4.4.10.0050.01212.46
4.4.00.0090.02512.46
4.3.110.0030.01612.46
4.3.100.0050.01912.46
4.3.90.0000.01912.46
4.3.80.0050.02012.46
4.3.70.0060.01212.46
4.3.60.0050.01212.46
4.3.50.0030.02212.46
4.3.40.0050.02512.46
4.3.30.0020.01412.46
4.3.20.0020.01312.46
4.3.10.0020.02312.46
4.3.00.0010.01912.46

preferences:
55.37 ms | 400 KiB | 5 Q