3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=<<<XML <scales> <scale id="1" gender="*" age="*"> <d scid="hi" raw="10" t="76" /> <d scid="pn" raw="12" t="80" /> </scale> <scale id="2" gender="m" age="*"> <d scid="hi" raw="8" t="79" /> <d scid="pn" raw="2" t="50" /> </scale> <scale id="3" gender="*" age="19-39"> <d scid="hi" raw="0" t="48" /> <d scid="pn" raw="10" t="49" /> </scale> </scales> XML; $xml=simplexml_load_string($str); foreach($xml->xpath('//scale:d') as $t) { echo $t; }

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.0110.01118.87
8.3.50.0050.01021.27
8.3.40.0000.01519.22
8.3.30.0110.00320.80
8.3.20.0070.00020.66
8.3.10.0000.00822.42
8.3.00.0080.00022.95
8.2.180.0150.00617.13
8.2.170.0090.00622.96
8.2.160.0110.00420.89
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00019.94
8.2.110.0060.00322.78
8.2.100.0040.00719.64
8.2.90.0000.00919.78
8.2.80.0000.00819.84
8.2.70.0040.00417.75
8.2.60.0060.00318.18
8.2.50.0030.00518.07
8.2.40.0060.00318.59
8.2.30.0040.00418.49
8.2.20.0000.00818.07
8.2.10.0090.00018.15
8.2.00.0000.00718.16
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0130.01024.37
8.1.230.0030.00719.38
8.1.220.0000.01118.18
8.1.210.0000.00918.77
8.1.200.0060.00617.60
8.1.190.0040.00417.78
8.1.180.0060.00319.05
8.1.170.0040.00418.94
8.1.160.0040.00422.38
8.1.150.0030.00819.08
8.1.140.0050.00317.89
8.1.130.0040.00418.08
8.1.120.0040.00417.71
8.1.110.0050.00317.79
8.1.100.0050.00317.89
8.1.90.0000.00717.66
8.1.80.0040.00417.90
8.1.70.0000.00717.64
8.1.60.0000.00817.73
8.1.50.0030.00517.74
8.1.40.0030.00617.86
8.1.30.0000.00717.78
8.1.20.0040.00418.07
8.1.10.0000.00717.68
8.1.00.0080.00017.82
8.0.300.0060.00318.77
8.0.290.0080.00017.29
8.0.280.0070.00018.79
8.0.270.0000.00717.41
8.0.260.0030.00317.22
8.0.250.0030.00317.41
8.0.240.0030.00517.32
8.0.230.0000.00817.38
8.0.220.0000.00717.36
8.0.210.0050.00217.18
8.0.200.0060.00317.44
8.0.190.0040.00417.16
8.0.180.0050.00317.24
8.0.170.0040.00417.19
8.0.160.0040.00417.38
8.0.150.0000.00717.16
8.0.140.0050.00217.07
8.0.130.0000.00613.82
8.0.120.0030.00617.12
8.0.110.0000.00817.33
8.0.100.0040.00417.22
8.0.90.0050.00317.25
8.0.80.0040.01317.23
8.0.70.0040.00417.30
8.0.60.0000.00717.16
8.0.50.0000.00717.23
8.0.30.0110.01117.54
8.0.20.0100.00917.50
8.0.10.0050.00317.31
8.0.00.0120.00717.05
7.4.330.0050.00015.00
7.4.320.0030.00316.84
7.4.300.0030.00316.78
7.4.290.0070.00016.66
7.4.280.0030.00316.91
7.4.270.0030.00316.82
7.4.260.0040.00416.90
7.4.250.0040.00416.95
7.4.240.0000.00716.85
7.4.230.0050.00316.92
7.4.220.0180.01117.04
7.4.210.0040.01116.97
7.4.200.0000.00716.90
7.4.190.0040.00417.13
7.4.160.0110.00516.88
7.4.150.0060.01217.40
7.4.140.0090.01117.86
7.4.130.0080.00916.88
7.4.120.0090.00816.72
7.4.110.0150.00716.78
7.4.100.0130.00716.71
7.4.90.0180.00016.87
7.4.80.0140.01019.39
7.4.70.0060.01216.82
7.4.60.0090.01216.84
7.4.50.0040.00016.68
7.4.40.0090.00322.77
7.4.30.0170.00316.80
7.4.00.0090.00614.80
7.3.330.0030.00313.21
7.3.320.0000.00513.53
7.3.310.0000.00716.62
7.3.300.0050.00216.37
7.3.290.0060.00916.59
7.3.280.0050.01016.52
7.3.270.0140.00317.40
7.3.260.0070.01016.84
7.3.250.0130.00816.64
7.3.240.0120.00616.51
7.3.230.0060.01216.61
7.3.210.0080.00916.66
7.3.200.0090.00619.39
7.3.190.0140.01016.70
7.3.180.0040.01216.65
7.3.170.0080.01216.70
7.3.160.0170.00316.63
7.3.120.0000.01415.14
7.2.330.0130.00617.10
7.2.320.0130.00916.92
7.2.310.0090.00917.01
7.2.300.0060.01216.94
7.2.290.0180.00716.87
7.2.60.0060.00917.04
7.2.00.0080.00819.43
7.1.200.0110.00015.91
7.1.100.0060.00618.41
7.1.70.0060.00616.92
7.1.60.0030.01319.29
7.1.50.0060.01516.75
7.1.00.0000.04322.79
7.0.200.0510.00014.60
7.0.140.0100.06722.25
7.0.110.0030.08020.21
7.0.100.0130.07720.24
7.0.90.0170.07020.20
7.0.80.0030.05320.25
7.0.70.0170.07320.09
7.0.60.0030.08320.05
7.0.50.0170.06320.59
7.0.40.0000.08020.37
7.0.30.0100.08320.46
7.0.20.0130.08020.40
7.0.10.0230.06020.33
7.0.00.0100.07720.20
5.6.280.0000.07721.32
5.6.260.0100.08020.75
5.6.250.0100.08020.93
5.6.240.0130.07320.77
5.6.230.0100.08020.77
5.6.220.0070.08320.76
5.6.210.0030.09020.97
5.6.200.0100.07321.45
5.6.190.0070.08321.12
5.6.180.0030.07321.29
5.6.170.0130.07721.09
5.6.160.0070.08021.39
5.6.150.0100.07021.37
5.6.140.0070.05021.51
5.6.130.0070.06321.38
5.6.120.0070.06321.28
5.6.110.0070.08321.45
5.6.100.0100.08321.30
5.6.90.0070.08321.44
5.6.80.0030.08720.47
5.6.70.0100.07720.77
5.6.60.0030.08320.55
5.6.50.0030.08020.85
5.6.40.0100.07320.53
5.6.30.0100.06720.82
5.6.20.0000.04320.77
5.6.10.0070.07720.62
5.6.00.0070.07720.52
5.5.380.0170.06720.66
5.5.370.0170.06720.65
5.5.360.0130.07720.64
5.5.350.0070.08320.54
5.5.340.0170.07720.82
5.5.330.0130.07721.29
5.5.320.0000.07020.90
5.5.310.0030.07721.13
5.5.300.0130.08020.88
5.5.290.0130.08020.99
5.5.280.0030.08320.89
5.5.270.0100.08321.07
5.5.260.0170.06321.20
5.5.250.0070.08320.89
5.5.240.0030.08320.21
5.5.230.0100.08020.45
5.5.220.0070.08320.20
5.5.210.0000.08320.34
5.5.200.0000.05320.43
5.5.190.0130.04020.25
5.5.180.0070.08020.30
5.5.160.0070.07720.63
5.5.150.0100.07720.43
5.5.140.0100.07720.41
5.5.130.0070.03320.31
5.5.120.0030.04020.54
5.5.110.0070.04320.62
5.5.100.0070.07720.35
5.5.90.0130.06720.17
5.5.80.0100.06720.43
5.5.70.0070.07020.34
5.5.60.0100.07020.30
5.5.50.0030.08020.13
5.5.40.0030.08320.43
5.5.30.0100.07720.13
5.5.20.0130.07320.40
5.5.10.0030.07720.11
5.5.00.0170.06720.15
5.4.450.0100.07019.82
5.4.440.0030.08019.72
5.4.430.0030.08719.59
5.4.420.0070.06319.64
5.4.410.0030.08019.42
5.4.400.0070.08019.49
5.4.390.0030.07019.14
5.4.380.0030.08019.10
5.4.370.0130.06719.49
5.4.360.0100.07019.18
5.4.350.0100.07319.44
5.4.340.0170.06719.48
5.4.320.0100.07719.44
5.4.310.0130.07019.49
5.4.300.0030.08019.39
5.4.290.0100.07019.13
5.4.280.0100.06319.22
5.4.270.0000.07719.15
5.4.260.0030.07319.10
5.4.250.0130.06719.48
5.4.240.0070.07719.30
5.4.230.0030.03719.23
5.4.220.0100.07319.52
5.4.210.0030.04319.31
5.4.200.0070.03719.52
5.4.190.0070.07319.38
5.4.180.0170.06719.21
5.4.170.0070.03719.39
5.4.160.0000.04019.18
5.4.150.0070.07319.14
5.4.140.0070.05716.55
5.4.130.0130.06316.44
5.4.120.0130.06716.41
5.4.110.0070.07316.75
5.4.100.0070.06716.76
5.4.90.0100.06716.74
5.4.80.0030.07716.73
5.4.70.0070.07316.73
5.4.60.0130.07016.60
5.4.50.0130.06716.85
5.4.40.0130.07016.71
5.4.30.0070.04316.38
5.4.20.0130.06716.81
5.4.10.0100.06716.71
5.4.00.0030.07316.34
5.3.290.0070.08015.04
5.3.280.0030.04015.04
5.3.270.0030.05015.04
5.3.260.0030.07315.04
5.3.250.0070.04315.04
5.3.240.0070.04315.04
5.3.230.0030.06715.04
5.3.220.0030.06015.04
5.3.210.0070.07315.04
5.3.200.0130.06715.04
5.3.190.0070.07715.04
5.3.180.0100.07315.04
5.3.170.0030.07715.04
5.3.160.0070.06315.04
5.3.150.0100.07015.04
5.3.140.0170.06715.04
5.3.130.0100.06715.04
5.3.120.0100.07315.04
5.3.110.0000.08715.04
5.3.100.0100.07315.04
5.3.90.0070.06715.04
5.3.80.0070.04315.04
5.3.70.0030.07715.04
5.3.60.0100.07015.04
5.3.50.0030.07315.04
5.3.40.0070.07715.04
5.3.30.0030.07715.04
5.3.20.0130.06315.04
5.3.10.0100.07015.04
5.3.00.0030.06315.04
5.2.170.0100.06015.04
5.2.160.0100.05315.04
5.2.150.0070.06015.04
5.2.140.0070.06315.04
5.2.130.0030.06715.04
5.2.120.0000.06315.04
5.2.110.0000.06715.04
5.2.100.0070.06015.04
5.2.90.0000.06315.04
5.2.80.0100.05315.04
5.2.70.0030.04715.04
5.2.60.0070.03315.04
5.2.50.0070.04715.04
5.2.40.0070.06015.04
5.2.30.0070.05015.04
5.2.20.0030.03315.04
5.2.10.0130.03715.04
5.2.00.0030.06015.04
5.1.60.0070.05015.04
5.1.50.0000.05015.04
5.1.40.0030.04015.04
5.1.30.0070.05315.04
5.1.20.0130.05015.04
5.1.10.0030.05715.04
5.1.00.0030.05715.04
5.0.50.0030.04315.04
5.0.40.0070.04015.04
5.0.30.0030.06315.04
5.0.20.0030.04315.04
5.0.10.0030.03315.04
5.0.00.0030.06715.04
4.4.90.0130.02315.04
4.4.80.0000.03715.04
4.4.70.0100.02715.04
4.4.60.0030.03315.04
4.4.50.0000.04015.04
4.4.40.0030.05015.04
4.4.30.0000.03715.04
4.4.20.0030.01715.04
4.4.10.0070.01715.04
4.4.00.0070.05315.04
4.3.110.0000.02715.04
4.3.100.0000.03315.04
4.3.90.0070.03015.04
4.3.80.0000.02715.04
4.3.70.0000.03315.04
4.3.60.0030.03315.04
4.3.50.0030.03315.04
4.3.40.0030.05315.04
4.3.30.0000.03715.04
4.3.20.0070.03015.04
4.3.10.0000.02015.04
4.3.00.0070.03015.04

preferences:
52.89 ms | 401 KiB | 5 Q