3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=<<<XML <scales> <scale id="1" gender="v"> <d>5</d> <d>9</d> </scale> <scale id="2" gender="m" age="*"> <d>3</d> <d>0</d> </scale> <scale id="3" gender="*" age="19-39"> <d>12</d> <d>19</d> </scale> </scales> XML; $xml=simplexml_load_string($str); $result=$xml->xpath('//scale[@age]'); foreach($result as $node) { echo $node->attributes()->id."\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.60.0090.00618.79
8.3.50.0090.00618.43
8.3.40.0080.00819.04
8.3.30.0070.01018.98
8.3.20.0080.00019.26
8.3.10.0000.00822.10
8.3.00.0040.00419.32
8.2.180.0170.00018.55
8.2.170.0090.00922.96
8.2.160.0070.00720.82
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00422.81
8.2.120.0050.00326.35
8.2.110.0060.00322.61
8.2.100.0040.00818.09
8.2.90.0050.00318.13
8.2.80.0040.00419.17
8.2.70.0040.00418.28
8.2.60.0050.00318.34
8.2.50.0030.00519.46
8.2.40.0030.00519.66
8.2.30.0030.00819.59
8.2.20.0070.00018.46
8.2.10.0040.00418.44
8.2.00.0030.00618.20
8.1.280.0150.00625.92
8.1.270.0080.00023.99
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0070.01024.40
8.1.230.0070.00418.20
8.1.220.0050.00318.27
8.1.210.0040.00418.77
8.1.200.0060.00317.73
8.1.190.0040.00417.48
8.1.180.0040.00419.41
8.1.170.0090.00020.68
8.1.160.0000.00719.25
8.1.150.0040.00420.57
8.1.140.0040.00419.89
8.1.130.0030.00518.24
8.1.120.0000.01017.93
8.1.110.0030.00517.88
8.1.100.0050.00317.71
8.1.90.0050.00317.88
8.1.80.0040.00417.84
8.1.70.0040.00417.64
8.1.60.0040.00417.81
8.1.50.0080.00017.98
8.1.40.0040.00417.75
8.1.30.0000.00918.04
8.1.20.0020.00518.01
8.1.10.0050.00317.92
8.1.00.0000.00817.69
8.0.300.0090.00019.28
8.0.290.0070.00017.25
8.0.280.0070.00018.76
8.0.270.0040.00417.70
8.0.260.0040.00417.57
8.0.250.0070.00017.20
8.0.240.0070.00017.45
8.0.230.0000.00717.20
8.0.220.0080.00017.14
8.0.210.0000.00717.18
8.0.200.0040.00417.18
8.0.190.0040.00717.28
8.0.180.0040.00417.24
8.0.170.0030.00517.20
8.0.160.0050.00217.40
8.0.150.0040.00417.33
8.0.140.0040.00417.34
8.0.130.0040.00413.84
8.0.120.0030.00617.27
8.0.110.0080.00017.33
8.0.100.0000.00717.29
8.0.90.0030.00517.32
8.0.80.0150.00617.20
8.0.70.0000.00817.39
8.0.60.0040.00417.25
8.0.50.0050.00317.18
8.0.30.0080.01117.50
8.0.20.0130.00817.42
8.0.10.0030.00617.50
8.0.00.0140.00317.02
7.4.330.0050.00015.55
7.4.320.0000.00616.92
7.4.300.0040.00416.80
7.4.290.0050.00317.03
7.4.280.0030.00516.89
7.4.270.0070.00016.89
7.4.260.0030.00716.78
7.4.250.0040.00416.90
7.4.240.0060.00317.00
7.4.230.0030.00316.95
7.4.220.0140.00316.88
7.4.210.0130.00316.88
7.4.200.0080.00016.86
7.4.160.0070.01216.82
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0060.01216.93
7.4.120.0100.00816.95
7.4.110.0110.00716.68
7.4.100.0120.00616.81
7.4.90.0080.00816.83
7.4.80.0080.00819.39
7.4.70.0050.01116.91
7.4.60.0090.00916.95
7.4.50.0000.01216.92
7.4.40.0090.00616.64
7.4.30.0090.01216.82
7.4.00.0080.01014.95
7.3.330.0040.00313.50
7.3.320.0000.00513.63
7.3.310.0030.00316.80
7.3.300.0030.00316.68
7.3.290.0060.00816.68
7.3.280.0090.00916.67
7.3.270.0140.01017.40
7.3.260.0120.00516.71
7.3.250.0110.00616.83
7.3.240.0040.01416.84
7.3.230.0140.00416.70
7.3.210.0090.00816.79
7.3.200.0040.01816.67
7.3.190.0090.01316.77
7.3.180.0000.01616.85
7.3.170.0090.00616.65
7.3.160.0090.00916.98
7.3.120.0060.00915.00
7.3.110.0080.00815.01
7.3.100.0040.01115.02
7.3.90.0090.00315.07
7.3.80.0080.00614.91
7.3.70.0140.00715.06
7.3.60.0090.00614.83
7.3.50.0030.01315.13
7.3.40.0030.01015.06
7.3.30.0070.01015.05
7.3.20.0100.00316.81
7.3.10.0100.00316.82
7.3.00.0080.00416.80
7.2.330.0080.00817.13
7.2.320.0120.00417.21
7.2.310.0140.00416.69
7.2.300.0120.01217.21
7.2.290.0090.00917.02
7.2.250.0110.00715.44
7.2.240.0120.00615.39
7.2.230.0000.01415.19
7.2.220.0080.00515.32
7.2.210.0090.00615.33
7.2.200.0070.01014.84
7.2.190.0070.01415.12
7.2.180.0030.00915.30
7.2.170.0030.01215.04
7.2.60.0100.00316.79
7.2.50.0030.00716.84
7.1.330.0110.00315.94
7.1.320.0040.00815.95
7.1.310.0060.00615.83
7.1.300.0090.00315.81
7.1.290.0070.00315.90
7.1.280.0120.00315.88
7.1.270.0100.00315.93
7.1.260.0000.01215.85
7.1.200.0030.00915.81
7.1.70.0030.00517.30
7.1.60.0040.00717.17
7.1.00.0430.07020.72
7.0.200.0220.00016.77
7.0.130.0770.06020.48
7.0.120.0870.08320.34
7.0.110.0430.05320.54
7.0.100.0400.06020.49
7.0.90.0600.06320.38
7.0.80.0470.06320.51
7.0.70.0470.08720.58
7.0.60.0430.06320.59
7.0.50.0670.07720.37
7.0.40.0300.06020.36
7.0.30.0600.07720.40
7.0.20.0700.08320.36
7.0.10.1070.08020.45
7.0.00.0470.07720.46
5.6.280.0200.06321.22
5.6.270.0130.08021.25
5.6.260.0170.05720.97
5.6.250.0100.05721.00
5.6.240.0070.06021.09
5.6.230.0130.08321.20
5.6.220.0270.06720.91
5.6.210.0230.06021.25
5.6.200.0200.06021.10
5.6.190.0200.05021.07
5.6.180.0130.05321.01
5.6.170.0030.07021.20
5.6.160.0170.06721.24
5.6.150.0200.07720.93
5.6.140.0070.07321.18
5.6.130.0130.06721.01
5.6.120.0230.06021.11
5.6.110.0100.06021.04
5.6.100.0130.06021.08
5.6.90.0270.05721.21
5.6.80.0070.06020.56
5.6.70.0100.05720.42
5.6.60.0200.06020.48
5.6.50.0400.06020.42
5.6.40.0270.07020.51
5.6.30.0100.08020.44
5.6.20.0170.06320.35
5.6.10.0170.05320.43
5.6.00.0100.07020.41

preferences:
76.18 ms | 400 KiB | 5 Q