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[@gender="*"]@age') 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.0060.01219.04
8.3.50.0140.00721.39
8.3.40.0110.00419.04
8.3.30.0000.01420.77
8.3.20.0070.00020.75
8.3.10.0050.00321.47
8.3.00.0000.00822.99
8.2.180.0120.00918.79
8.2.170.0120.00622.96
8.2.160.0030.01022.58
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0120.00026.16
8.2.120.0050.00321.31
8.2.110.0030.00619.52
8.2.100.0060.00618.16
8.2.90.0060.00319.59
8.2.80.0030.00618.17
8.2.70.0040.00418.00
8.2.60.0040.00418.18
8.2.50.0050.00318.07
8.2.40.0000.00818.71
8.2.30.0030.00619.60
8.2.20.0080.00018.15
8.2.10.0060.00317.93
8.2.00.0030.00618.15
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00322.71
8.1.230.0040.00821.26
8.1.220.0050.00318.77
8.1.210.0000.00919.29
8.1.200.0080.00017.60
8.1.190.0040.00417.78
8.1.180.0090.00018.10
8.1.170.0050.00318.90
8.1.160.0080.00019.32
8.1.150.0060.00318.92
8.1.140.0050.00317.86
8.1.130.0090.00018.10
8.1.120.0070.00017.65
8.1.110.0040.00417.86
8.1.100.0080.00017.63
8.1.90.0070.00017.66
8.1.80.0070.00017.91
8.1.70.0030.00417.64
8.1.60.0060.00317.76
8.1.50.0080.00017.95
8.1.40.0060.00317.86
8.1.30.0030.00617.84
8.1.20.0050.00318.08
8.1.10.0040.00417.84
8.1.00.0040.00417.71
8.0.300.0060.00320.14
8.0.290.0000.00717.55
8.0.280.0000.00718.71
8.0.270.0040.00417.63
8.0.260.0030.00617.30
8.0.250.0070.00017.50
8.0.240.0040.00417.23
8.0.230.0070.00017.45
8.0.220.0000.00717.43
8.0.210.0000.00717.39
8.0.200.0000.00717.46
8.0.190.0040.00417.39
8.0.180.0070.00017.21
8.0.170.0080.00017.13
8.0.160.0050.00317.13
8.0.150.0060.00317.31
8.0.140.0000.00717.34
8.0.130.0000.00613.85
8.0.120.0040.00417.30
8.0.110.0030.00517.36
8.0.100.0040.00417.16
8.0.90.0070.00017.35
8.0.80.0120.00317.32
8.0.70.0000.00817.15
8.0.60.0060.00317.25
8.0.50.0050.00317.27
8.0.30.0130.00717.52
8.0.20.0120.00717.47
8.0.10.0050.00217.30
8.0.00.0110.00717.07
7.4.330.0000.00617.12
7.4.320.0070.00016.95
7.4.300.0030.00316.87
7.4.290.0030.00316.94
7.4.280.0030.00316.86
7.4.270.0030.00516.80
7.4.260.0030.00313.51
7.4.250.0040.00416.94
7.4.240.0020.00516.91
7.4.230.0070.00016.81
7.4.220.0120.00616.96
7.4.210.0080.00616.88
7.4.200.0030.00517.02
7.4.190.0030.00316.97
7.4.160.0100.00716.84
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0100.01016.79
7.4.120.0060.01416.82
7.4.110.0090.00916.88
7.4.100.0090.01516.78
7.4.90.0070.01516.87
7.4.80.0090.00619.39
7.4.70.0080.00816.80
7.4.60.0090.00916.88
7.4.50.0040.00416.93
7.4.40.0110.00322.77
7.4.30.0110.00717.07
7.4.00.0070.00715.11
7.3.330.0000.00513.58
7.3.320.0000.00513.57
7.3.310.0080.00016.66
7.3.300.0070.00016.45
7.3.290.0090.00616.45
7.3.280.0100.00516.54
7.3.270.0060.01117.40
7.3.260.0130.00718.24
7.3.250.0100.01216.54
7.3.240.0140.00716.61
7.3.230.0100.00616.57
7.3.210.0090.00916.59
7.3.200.0130.01019.39
7.3.190.0120.00816.79
7.3.180.0100.01016.31
7.3.170.0120.01216.67
7.3.160.0150.00316.79
7.3.120.0080.00914.90
7.3.110.0060.01014.90
7.3.100.0050.01114.84
7.3.90.0050.01014.86
7.3.80.0040.00914.95
7.3.70.0010.01214.76
7.3.60.0060.00814.88
7.3.50.0080.00514.90
7.3.40.0080.00514.85
7.3.30.0080.00514.82
7.3.20.0090.00816.65
7.3.10.0080.00616.70
7.3.00.0070.00816.75
7.2.330.0130.00316.90
7.2.320.0070.01116.93
7.2.310.0060.01216.96
7.2.300.0090.00916.81
7.2.290.0090.01216.87
7.2.250.0080.00815.43
7.2.240.0100.00614.99
7.2.230.0050.01015.09
7.2.220.0030.01115.10
7.2.210.0040.01415.18
7.2.200.0060.00614.88
7.2.190.0080.00915.17
7.2.180.0030.01114.86
7.2.170.0020.01115.03
7.2.160.0050.01015.03
7.2.150.0050.00916.91
7.2.140.0050.00616.97
7.2.130.0060.00817.08
7.2.120.0070.00716.94
7.2.110.0050.00716.98
7.2.100.0080.00516.95
7.2.90.0080.00617.03
7.2.80.0040.00817.01
7.2.70.0020.01316.90
7.2.60.0050.01016.96
7.2.50.0070.00616.97
7.2.40.0030.01316.82
7.2.30.0090.00616.96
7.2.20.0050.00816.75
7.2.10.0080.00616.94
7.2.00.0060.01117.96
7.1.330.0080.00815.85
7.1.320.0050.00715.96
7.1.310.0050.00815.90
7.1.300.0070.00615.69
7.1.290.0080.00615.90
7.1.280.0060.00715.84
7.1.270.0030.01116.05
7.1.260.0060.00715.80
7.1.250.0100.00315.59
7.1.100.0100.01017.99
7.1.70.0000.01417.31
7.1.60.0180.00719.17
7.1.50.0090.01217.11
7.1.00.0030.06722.63
7.0.200.0040.00716.70
7.0.140.0100.06322.25
7.0.80.0070.04020.11
7.0.70.0230.04720.07
7.0.60.0230.04020.17
7.0.50.0300.04320.49
7.0.40.0130.06720.14
7.0.30.0000.05020.35
7.0.20.0030.04720.25
7.0.10.0070.03320.16
7.0.00.0100.04020.30
5.6.280.0030.07321.13
5.6.230.0000.05320.87
5.6.220.0000.04320.73
5.6.210.0070.03320.66
5.6.200.0000.04021.17
5.6.190.0030.04321.13
5.6.180.0030.03721.16
5.6.170.0070.04021.13
5.6.160.0070.05721.20
5.6.150.0070.03721.20
5.6.140.0070.03721.18
5.6.130.0030.04321.14
5.6.120.0000.05321.26
5.6.110.0070.04021.16
5.6.100.0070.04021.11
5.6.90.0030.05721.21
5.6.80.0000.04720.58
5.6.70.0030.03320.69
5.6.60.0070.05320.54
5.6.50.0070.08720.72
5.6.40.0130.04720.66
5.6.30.0030.04320.52
5.6.20.0100.07320.57
5.6.10.0070.08020.68
5.6.00.0170.07020.51
5.5.370.0030.04020.58
5.5.360.0000.04320.59
5.5.350.0030.07020.60
5.5.340.0030.04321.00
5.5.330.0030.04321.05
5.5.320.0100.06021.01
5.5.310.0030.04320.94
5.5.300.0070.04321.00
5.5.290.0030.04021.02
5.5.280.0070.06720.90
5.5.270.0030.04321.07
5.5.260.0070.04021.09
5.5.250.0070.03720.93
5.5.240.0130.03020.48
5.5.230.0030.07020.32
5.5.220.0070.08020.31
5.5.210.0030.07320.46
5.5.200.0030.08720.18
5.5.190.0100.05020.45
5.5.180.0070.08020.39
5.5.160.0070.07720.43
5.5.150.0100.04320.35
5.5.140.0070.07320.26
5.5.130.0070.08320.43
5.5.120.0030.08320.37
5.5.110.0030.06020.37
5.5.100.0200.06320.23
5.5.90.0030.07320.25
5.5.80.0100.05720.25
5.5.70.0030.05720.35
5.5.60.0070.07720.30
5.5.50.0030.06720.15
5.5.40.0100.04020.12
5.5.30.0030.07020.25
5.5.20.0100.04720.14
5.5.10.0130.07720.19
5.5.00.0030.04720.24
5.4.450.0070.05319.59
5.4.440.0030.03719.59
5.4.430.0030.03319.60
5.4.420.0030.05319.68
5.4.410.0100.03319.39
5.4.400.0100.07719.29
5.4.390.0030.08019.31
5.4.380.0130.06719.14
5.4.370.0070.07719.18
5.4.360.0130.06019.24
5.4.350.0170.04319.11
5.4.340.0070.05719.12
5.4.320.0100.07719.09
5.4.310.0070.07319.33
5.4.300.0100.07719.18
5.4.290.0070.06019.25
5.4.280.0070.07719.27
5.4.270.0130.03319.24
5.4.260.0230.03319.24
5.4.250.0170.06319.36
5.4.240.0070.08319.09
5.4.230.0070.06719.11
5.4.220.0130.03319.27
5.4.210.0070.04019.08
5.4.200.0100.07319.26
5.4.190.0130.06319.26
5.4.180.0130.07019.28
5.4.170.0030.05719.19
5.4.160.0100.06319.27
5.4.150.0130.03719.27
5.4.140.0070.07716.62
5.4.130.0070.05316.54
5.4.120.0070.07316.51
5.4.110.0030.04716.54
5.4.100.0070.07316.71
5.4.90.0070.04316.66
5.4.80.0030.05716.64
5.4.70.0070.03716.64
5.4.60.0070.04316.70
5.4.50.0170.06716.74
5.4.40.0030.04716.70
5.4.30.0230.06316.58
5.4.20.0030.05016.55
5.4.10.0030.07316.59
5.4.00.0030.07715.84
5.3.290.0100.05314.90
5.3.280.0070.04714.84
5.3.270.0030.04314.79
5.3.260.0070.08314.74
5.3.250.0070.04014.83
5.3.240.0000.05314.77
5.3.230.0030.08314.77
5.3.220.0100.04314.83
5.3.210.0270.05714.85
5.3.200.0100.04714.79
5.3.190.0030.08014.74
5.3.180.0070.08014.64
5.3.170.0000.05014.70
5.3.160.0170.06714.74
5.3.150.0000.08314.73
5.3.140.0030.08014.63
5.3.130.0030.08314.75
5.3.120.0200.06314.70
5.3.110.0030.06314.72
5.3.100.0100.05314.21
5.3.90.0030.06014.27
5.3.80.0070.03714.19
5.3.70.0000.04014.30
5.3.60.0100.05014.09
5.3.50.0100.04314.13
5.3.40.0070.05014.14
5.3.30.0070.05314.14
5.3.20.0070.07013.89
5.3.10.0170.05313.94
5.3.00.0100.05713.85
5.2.170.0100.05711.57
5.2.160.0030.06311.57
5.2.150.0070.05711.57
5.2.140.0030.04711.57
5.2.130.0070.06011.57
5.2.120.0030.06311.57
5.2.110.0000.06711.57
5.2.100.0100.05711.57
5.2.90.0170.04011.57
5.2.80.0030.06711.57
5.2.70.0130.05311.57
5.2.60.0070.05711.57
5.2.50.0100.05311.57
5.2.40.0100.05711.57
5.2.30.0130.05011.57
5.2.20.0030.05711.57
5.2.10.0070.05011.57
5.2.00.0030.06311.57
5.1.60.0070.05011.57
5.1.50.0070.04711.57
5.1.40.0070.05011.57
5.1.30.0100.03311.57
5.1.20.0070.05311.57
5.1.10.0000.06311.57
5.1.00.0070.04711.57
5.0.50.0000.03011.57
5.0.40.0030.03711.57
5.0.30.0100.06711.57
5.0.20.0030.02011.57
5.0.10.0030.04011.57
5.0.00.0030.03011.57
4.4.90.0030.03311.57
4.4.80.0030.03311.57
4.4.70.0030.02311.57
4.4.60.0030.02311.57
4.4.50.0030.03011.57
4.4.40.0070.05711.57
4.4.30.0070.03311.57
4.4.20.0100.02711.57
4.4.10.0000.03011.57
4.4.00.0000.02711.57
4.3.110.0070.03011.57
4.3.100.0000.02711.57
4.3.90.0030.01311.57
4.3.80.0070.04311.57
4.3.70.0030.03311.57
4.3.60.0030.02311.57
4.3.50.0000.02011.57
4.3.40.0000.04311.57
4.3.30.0000.03311.57
4.3.20.0070.01711.57
4.3.10.0000.02011.57
4.3.00.0000.03711.57

preferences:
42.25 ms | 401 KiB | 5 Q