3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <book> <section> <p>Example text</p> <p>Another text</p> <img l:href="imagehref"> <p>Textual content</p> </section> </book>'; $xml = simplexml_load_string($xml); foreach($node->xpath('/section') as $section) { echo 'Got section', "\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.70.0080.00816.59
8.3.60.0120.00316.88
8.3.50.0120.00721.14
8.3.40.0090.00619.13
8.3.30.0110.00419.22
8.3.20.0040.00420.50
8.3.10.0080.00023.90
8.3.00.0080.00021.94
8.2.190.0160.00618.79
8.2.180.0000.01517.13
8.2.170.0170.00322.96
8.2.160.0040.01120.68
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00521.25
8.2.120.0090.00026.35
8.2.110.0040.00721.36
8.2.100.0090.00318.03
8.2.90.0000.00818.03
8.2.80.0000.00818.16
8.2.70.0030.00617.75
8.2.60.0040.00418.05
8.2.50.0000.00818.09
8.2.40.0000.00720.80
8.2.30.0070.00019.54
8.2.20.0040.00417.99
8.2.10.0070.00018.23
8.2.00.0040.00418.30
8.1.280.0140.00025.92
8.1.270.0090.00622.38
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0040.01522.67
8.1.230.0060.00621.22
8.1.220.0060.00317.91
8.1.210.0030.00519.03
8.1.200.0030.00617.61
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0040.00420.89
8.1.150.0040.00420.80
8.1.140.0080.00019.86
8.1.130.0040.00417.93
8.1.120.0000.00817.55
8.1.110.0070.00017.60
8.1.100.0000.00817.53
8.1.90.0080.00017.67
8.1.80.0040.00417.55
8.1.70.0000.00717.68
8.1.60.0040.00417.69
8.1.50.0030.00617.88
8.1.40.0040.00417.85
8.1.30.0040.00417.73
8.1.20.0000.00917.80
8.1.10.0050.00317.80
8.1.00.0040.00417.65
8.0.300.0040.00420.17
8.0.290.0030.00617.00
8.0.280.0040.00418.67
8.0.270.0040.00417.50
8.0.260.0000.00617.43
8.0.250.0030.00317.29
8.0.240.0080.00017.21
8.0.230.0030.00517.04
8.0.220.0030.00317.14
8.0.210.0000.00717.02
8.0.200.0000.00617.29
8.0.190.0050.00217.08
8.0.180.0050.00217.05
8.0.170.0080.00017.17
8.0.160.0000.00717.09
8.0.150.0000.00717.08
8.0.140.0000.00717.14
8.0.130.0000.00513.73
8.0.120.0000.00817.10
8.0.110.0040.00417.19
8.0.100.0000.00717.05
8.0.90.0020.00517.07
8.0.80.0080.00817.13
8.0.70.0000.00717.02
8.0.60.0040.00417.17
8.0.50.0020.00517.07
8.0.30.0050.01217.39
8.0.20.0130.00817.45
8.0.10.0070.00017.03
8.0.00.0110.00916.96
7.4.330.0050.00017.17
7.4.320.0000.00616.77
7.4.300.0030.00316.82
7.4.290.0030.00316.85
7.4.280.0040.00416.65
7.4.270.0000.00716.86
7.4.260.0040.00416.82
7.4.250.0070.00016.64
7.4.240.0030.00316.76
7.4.230.0030.00516.62
7.4.220.0120.00616.83
7.4.210.0120.00616.85
7.4.200.0030.00516.86
7.4.160.0070.01016.92
7.4.150.0150.00317.40
7.4.140.0110.01017.86
7.4.130.0140.00716.71
7.4.120.0090.00916.82
7.4.110.0080.00816.80
7.4.100.0090.00916.65
7.4.90.0080.01016.82
7.4.80.0120.00919.39
7.4.70.0080.01116.67
7.4.60.0060.01216.67
7.4.50.0100.00716.76
7.4.40.0080.00916.98
7.4.30.0100.00716.89
7.4.00.0000.01315.00
7.3.330.0000.00513.24
7.3.320.0070.00013.51
7.3.310.0000.00716.33
7.3.300.0030.00316.53
7.3.290.0040.00416.50
7.3.280.0090.01016.52
7.3.270.0070.01017.40
7.3.260.0040.01316.52
7.3.250.0070.01316.65
7.3.240.0090.00816.58
7.3.230.0100.00616.80
7.3.210.0100.00716.63
7.3.200.0000.01819.39
7.3.190.0080.00916.66
7.3.180.0100.00516.64
7.3.170.0060.01316.61
7.3.160.0080.00816.67
7.2.330.0110.00616.51
7.2.320.0060.01116.86
7.2.310.0120.00616.78
7.2.300.0030.01416.81
7.2.290.0080.00816.61
7.2.60.0060.01017.03
7.2.00.0040.01519.52
7.1.200.0060.00815.81
7.1.100.0130.00318.15
7.1.70.0000.00817.32
7.1.60.0040.02219.40
7.1.50.0000.02016.86
7.1.00.0030.07722.58
7.0.200.0230.00315.02
7.0.60.0200.07021.79
7.0.50.0000.05018.04
7.0.40.0030.05720.17
7.0.30.0530.06720.32
7.0.20.0300.08720.20
7.0.10.0270.06720.20
7.0.00.0100.04720.23
5.6.280.0000.03320.97
5.6.210.0130.04720.73
5.6.200.0030.08718.26
5.6.190.0070.06720.81
5.6.180.0170.05320.54
5.6.170.0230.03320.78
5.6.160.0030.04020.55
5.6.150.0030.08718.22
5.6.140.0100.07318.35
5.6.130.0030.05018.21
5.6.120.0100.08321.19
5.6.110.0100.08021.18
5.6.100.0070.04021.03
5.6.90.0130.04321.02
5.6.80.0130.04320.42
5.5.350.0270.03320.43
5.5.340.0030.03718.06
5.5.330.0030.07720.33
5.5.320.0230.04320.43
5.5.310.0270.07720.32
5.5.300.0070.04318.02
5.5.290.0030.08318.05
5.5.280.0030.04721.05
5.5.270.0030.04321.04
5.5.260.0030.09020.91
5.5.250.0030.08320.52
5.5.240.0200.07720.47

preferences:
68.84 ms | 401 KiB | 5 Q