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="*"]/d[@scid="hi"][@raw="10"]/@t') 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.0120.00818.91
8.3.50.0070.01222.12
8.3.40.0060.00919.16
8.3.30.0040.01119.04
8.3.20.0040.00419.16
8.3.10.0060.00321.20
8.3.00.0080.00022.20
8.2.180.0120.00916.88
8.2.170.0150.00022.96
8.2.160.0110.00420.85
8.2.150.0160.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0030.00521.57
8.2.110.0090.00020.74
8.2.100.0070.00418.09
8.2.90.0000.00919.55
8.2.80.0030.00618.30
8.2.70.0100.00017.88
8.2.60.0000.00818.28
8.2.50.0030.00518.07
8.2.40.0050.00318.41
8.2.30.0050.00219.77
8.2.20.0040.00418.01
8.2.10.0000.00818.23
8.2.00.0090.00018.17
8.1.280.0060.00925.92
8.1.270.0080.00023.99
8.1.260.0030.01426.35
8.1.250.0040.00428.09
8.1.240.0100.00022.41
8.1.230.0060.00621.32
8.1.220.0000.00818.77
8.1.210.0000.00819.30
8.1.200.0100.00017.60
8.1.190.0000.00917.77
8.1.180.0050.00318.10
8.1.170.0080.00019.02
8.1.160.0030.00619.16
8.1.150.0070.00318.97
8.1.140.0040.00417.80
8.1.130.0000.00718.10
8.1.120.0050.00317.82
8.1.110.0030.00517.72
8.1.100.0040.00417.88
8.1.90.0030.00517.72
8.1.80.0070.00017.88
8.1.70.0000.00817.66
8.1.60.0080.00018.01
8.1.50.0040.00417.86
8.1.40.0030.00517.75
8.1.30.0030.00618.09
8.1.20.0000.00817.89
8.1.10.0040.00417.96
8.1.00.0040.00417.88
8.0.300.0040.00420.40
8.0.290.0000.00817.43
8.0.280.0070.00018.70
8.0.270.0030.00617.55
8.0.260.0030.00317.22
8.0.250.0040.00417.24
8.0.240.0030.00817.39
8.0.230.0000.00717.43
8.0.220.0070.00017.31
8.0.210.0000.00717.11
8.0.200.0030.00317.20
8.0.190.0000.00717.16
8.0.180.0040.00417.25
8.0.170.0000.00717.15
8.0.160.0000.00817.36
8.0.150.0040.00417.35
8.0.140.0070.00017.07
8.0.130.0030.00313.61
8.0.120.0040.00417.34
8.0.110.0040.00417.19
8.0.100.0000.00817.26
8.0.90.0040.00417.28
8.0.80.0060.01017.17
8.0.70.0000.00717.25
8.0.60.0040.00417.08
8.0.50.0040.00417.12
8.0.30.0130.00517.51
8.0.20.0130.01317.43
8.0.10.0050.00217.45
8.0.00.0100.00717.10
7.4.330.0000.00517.25
7.4.320.0000.00616.95
7.4.300.0030.00316.88
7.4.290.0000.00716.76
7.4.280.0000.00716.83
7.4.270.0030.00316.92
7.4.260.0000.00513.66
7.4.250.0000.00716.75
7.4.240.0050.00216.97
7.4.230.0070.00016.81
7.4.220.0110.00716.93
7.4.210.0050.01316.97
7.4.200.0000.00816.91
7.4.190.0000.00716.84
7.4.160.0070.01016.79
7.4.150.0220.00017.40
7.4.140.0140.00717.86
7.4.130.0100.00816.92
7.4.120.0080.00916.93
7.4.110.0100.00716.62
7.4.100.0130.01316.84
7.4.90.0120.00616.85
7.4.80.0030.01319.39
7.4.70.0060.01016.70
7.4.60.0100.00716.79
7.4.50.0040.00416.73
7.4.40.0080.00422.77
7.4.30.0090.00916.81
7.4.00.0060.01115.08
7.3.330.0050.00013.56
7.3.320.0030.00313.61
7.3.310.0030.00616.38
7.3.300.0070.00016.66
7.3.290.0070.01316.65
7.3.280.0060.01116.75
7.3.270.0120.01017.40
7.3.260.0080.01418.24
7.3.250.0120.01016.75
7.3.240.0130.00316.77
7.3.230.0070.01017.00
7.3.210.0100.00716.95
7.3.200.0140.00819.39
7.3.190.0130.01016.80
7.3.180.0000.01916.61
7.3.170.0120.00416.76
7.3.160.0130.00316.85
7.3.120.0100.00715.03
7.3.110.0090.00914.96
7.3.100.0110.00414.76
7.3.90.0120.00315.05
7.3.80.0060.01014.75
7.3.70.0070.01014.70
7.3.60.0060.00615.01
7.3.50.0050.00515.11
7.3.40.0070.00715.04
7.3.30.0080.00415.03
7.3.20.0000.01516.80
7.3.10.0040.00416.99
7.3.00.0090.00616.85
7.2.330.0090.00916.90
7.2.320.0110.00616.76
7.2.310.0120.01216.70
7.2.300.0070.01116.76
7.2.290.0070.01016.83
7.2.250.0140.00315.13
7.2.240.0080.01115.17
7.2.230.0090.00915.17
7.2.220.0000.01315.39
7.2.210.0030.01015.38
7.2.200.0060.00615.20
7.2.190.0060.01015.34
7.2.180.0030.01415.04
7.2.170.0120.00015.20
7.2.130.0000.01217.09
7.2.120.0110.00316.91
7.2.110.0030.00717.05
7.2.100.0090.00616.95
7.2.90.0060.00617.17
7.2.80.0030.01117.25
7.2.70.0080.00816.92
7.2.60.0090.00316.99
7.2.50.0080.00317.03
7.2.40.0030.01217.18
7.2.30.0110.00017.16
7.2.20.0000.00916.88
7.2.10.0030.01016.96
7.2.00.0130.00418.37
7.1.330.0060.00915.79
7.1.320.0070.00715.97
7.1.310.0040.01116.01
7.1.300.0030.01016.21
7.1.290.0070.00715.99
7.1.280.0060.00315.81
7.1.270.0030.01015.84
7.1.260.0000.01416.06
7.1.250.0100.00315.96
7.1.240.0070.00715.88
7.1.230.0040.00815.93
7.1.220.0080.00315.98
7.1.210.0130.00015.79
7.1.200.0000.00915.79
7.1.190.0040.01115.80
7.1.180.0070.00716.11
7.1.170.0060.00916.09
7.1.160.0060.00815.89
7.1.150.0100.00315.77
7.1.140.0060.00315.94
7.1.130.0060.00615.93
7.1.120.0090.00315.71
7.1.110.0000.01215.89
7.1.100.0070.00817.30
7.1.90.0000.01016.03
7.1.80.0000.01416.02
7.1.70.0030.00716.80
7.1.60.0050.01417.61
7.1.50.0050.01325.39
7.1.40.0040.00715.95
7.1.30.0060.00615.70
7.1.20.0080.00415.91
7.1.10.0030.00715.70
7.1.00.0050.02319.29
7.0.330.0030.00615.66
7.0.320.0050.00315.47
7.0.310.0030.00915.53
7.0.300.0060.00615.71
7.0.290.0060.00915.29
7.0.280.0030.01015.56
7.0.270.0040.01115.50
7.0.260.0040.00415.60
7.0.250.0040.01215.32
7.0.240.0070.00315.57
7.0.230.0030.00715.47
7.0.220.0070.00315.50
7.0.210.0030.00715.40
7.0.200.0020.00616.11
7.0.190.0060.00615.70
7.0.180.0060.00615.51
7.0.170.0040.00715.44
7.0.160.0050.00515.65
7.0.150.0070.00315.57
7.0.140.0080.03518.90
7.0.130.0030.01015.44
7.0.120.0060.00315.64
7.0.110.0090.00315.42
7.0.100.0130.02717.89
7.0.90.0220.04417.75
7.0.80.0090.03717.82
7.0.70.0080.03117.88
7.0.60.0200.04117.76
7.0.50.0060.03118.09
7.0.40.0030.04716.88
7.0.30.0030.05316.72
7.0.20.0080.03216.82
7.0.10.0090.04216.75
7.0.00.0080.03717.02
5.6.380.0070.00414.82
5.6.370.0000.01214.65
5.6.360.0030.00914.54
5.6.350.0030.01014.53
5.6.340.0060.00314.52
5.6.330.0030.00914.35
5.6.320.0120.00013.99
5.6.310.0000.00814.75
5.6.300.0000.00814.12
5.6.290.0040.00813.95
5.6.280.0000.04617.68
5.6.270.0090.00314.20
5.6.260.0100.00314.57
5.6.250.0040.04517.56
5.6.240.0060.04017.63
5.6.230.0050.02717.51
5.6.220.0080.04517.55
5.6.210.0020.03117.44
5.6.200.0020.04517.69
5.6.190.0070.04517.85
5.6.180.0080.04417.90
5.6.170.0070.04417.65
5.6.160.0050.03817.78
5.6.150.0090.02017.81
5.6.140.0000.03917.80
5.6.130.0040.04417.89
5.6.120.0050.04317.85
5.6.110.0050.03017.92
5.6.100.0190.03317.85
5.6.90.0110.03317.89
5.6.80.0030.02517.48
5.6.70.0060.02617.63
5.6.60.0080.03217.47
5.6.50.0020.04417.51
5.6.40.0050.02417.43
5.6.30.0030.03017.61
5.6.20.0050.04217.47
5.6.10.0030.04417.59
5.6.00.0100.03817.37
5.5.380.0020.04415.79
5.5.370.0050.04215.78
5.5.360.0060.04015.79
5.5.350.0070.04215.82
5.5.340.0140.02516.09
5.5.330.0080.02616.01
5.5.320.0090.04316.04
5.5.310.0120.02216.10
5.5.300.0050.04416.07
5.5.290.0070.02916.08
5.5.280.0070.04516.13
5.5.270.0090.03916.13
5.5.260.0020.04815.98
5.5.250.0040.03915.94
5.5.240.0050.04015.70
5.5.230.0050.03515.74
5.5.220.0020.04315.81
5.5.210.0080.03815.70
5.5.200.0130.02615.78
5.5.190.0070.04015.71
5.5.180.0070.01815.82
5.5.170.0060.00611.00
5.5.160.0050.03915.70
5.5.150.0040.02415.83
5.5.140.0020.02615.74
5.5.130.0050.04215.78
5.5.120.0060.04115.78
5.5.110.0050.04015.79
5.5.100.0020.03815.69
5.5.90.0050.02015.64
5.5.80.0070.03315.61
5.5.70.0050.03615.65
5.5.60.0070.04215.59
5.5.50.0070.04015.66
5.5.40.0050.02815.66
5.5.30.0040.04415.69
5.5.20.0080.03715.65
5.5.10.0070.02915.70
5.5.00.0050.02715.65
5.4.450.0030.04215.32
5.4.440.0040.04415.27
5.4.430.0090.03715.18
5.4.420.0050.03115.31
5.4.410.0060.03615.26
5.4.400.0070.03515.01
5.4.390.0080.03515.05
5.4.380.0040.02115.13
5.4.370.0020.04715.13
5.4.360.0080.03815.06
5.4.350.0000.04515.00
5.4.340.0020.03515.13
5.4.330.0000.00711.00
5.4.320.0050.02915.15
5.4.310.0070.03515.13
5.4.300.0070.03715.14
5.4.290.0030.02715.26
5.4.280.0060.03015.14
5.4.270.0080.02215.05
5.4.260.0010.02815.06
5.4.250.0080.01815.06
5.4.240.0050.04015.14
5.4.230.0050.04115.17
5.4.220.0050.04315.00
5.4.210.0070.03315.22
5.4.200.0100.03115.09
5.4.190.0080.03115.10
5.4.180.0090.02715.15
5.4.170.0050.03215.12
5.4.160.0130.02215.14
5.4.150.0030.02815.01
5.4.140.0080.02313.74
5.4.130.0060.02013.76
5.4.120.0050.02013.78
5.4.110.0070.02013.73
5.4.100.0030.02213.77
5.4.90.0050.02013.75
5.4.80.0040.02013.72
5.4.70.0030.01913.71
5.4.60.0010.01813.76
5.4.50.0030.02213.81
5.4.40.0030.03513.79
5.4.30.0050.02213.77
5.4.20.0050.02013.69
5.4.10.0050.02213.73
5.4.00.0070.01813.35
5.3.290.0030.03512.95
5.3.280.0080.02512.87
5.3.270.0000.04512.87
5.3.260.0020.02912.88
5.3.250.0070.02212.88
5.3.240.0080.02012.87
5.3.230.0080.01612.90
5.3.220.0040.02112.89
5.3.210.0010.02412.84
5.3.200.0040.01812.82
5.3.190.0030.02212.80
5.3.180.0040.02012.81
5.3.170.0040.02012.87
5.3.160.0070.01812.86
5.3.150.0050.02012.87
5.3.140.0000.03612.79
5.3.130.0030.02112.78
5.3.120.0040.02012.85
5.3.110.0000.01912.89
5.3.100.0030.02112.64
5.3.90.0080.02012.52
5.3.80.0020.02612.60
5.3.70.0020.02512.62
5.3.60.0030.01912.56
5.3.50.0000.02612.55
5.3.40.0060.01612.59
5.3.30.0000.01912.51
5.3.20.0020.02412.46
5.3.10.0060.02312.40
5.3.00.0130.01212.38
5.2.170.0030.01711.19
5.2.160.0050.01511.21
5.2.150.0010.01611.18
5.2.140.0020.01711.07
5.2.130.0030.01711.11
5.2.120.0000.01911.18
5.2.110.0030.01411.09
5.2.100.0020.01911.19
5.2.90.0060.01511.11
5.2.80.0030.01311.12
5.2.70.0030.01511.09
5.2.60.0030.01311.05
5.2.50.0030.01711.10
5.2.40.0020.01711.06
5.2.30.0050.01911.07
5.2.20.0030.01511.05
5.2.10.0030.01511.03
5.2.00.0050.01710.96
5.1.60.0030.01510.63
5.1.50.0020.01510.61
5.1.40.0000.01610.63
5.1.30.0070.01210.79
5.1.20.0030.01510.78
5.1.10.0060.01110.69
5.1.00.0030.01310.68
5.0.50.0000.0149.86
5.0.40.0020.0109.85
5.0.30.0020.0159.72
5.0.20.0060.0059.71
5.0.10.0000.0119.67
5.0.00.0030.0179.71
4.4.90.0000.0109.50
4.4.80.0030.0089.50
4.4.70.0020.0109.50
4.4.60.0020.0079.50
4.4.50.0000.0149.50
4.4.40.0010.0159.50
4.4.30.0000.0129.50
4.4.20.0020.0089.50
4.4.10.0020.0109.50
4.4.00.0000.0179.50
4.3.110.0030.0089.50
4.3.100.0010.0099.50
4.3.90.0000.0119.50
4.3.80.0050.0179.50
4.3.70.0000.0129.50
4.3.60.0020.0139.50
4.3.50.0020.0129.50
4.3.40.0000.0299.50
4.3.30.0000.0219.50
4.3.20.0010.0209.50
4.3.10.0020.0189.50
4.3.00.0060.0159.50

preferences:
51.18 ms | 401 KiB | 5 Q