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="*" or @gender="m"][@age="*" or @age="39-59"]/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.0200.00018.68
8.3.50.0090.00722.16
8.3.40.0110.00419.04
8.3.30.0170.00319.47
8.3.20.0000.00820.71
8.3.10.0040.00423.86
8.3.00.0030.00621.19
8.2.180.0130.00725.92
8.2.170.0150.00019.39
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0120.00324.66
8.2.130.0070.00026.16
8.2.120.0090.00019.63
8.2.110.0190.00319.62
8.2.100.0080.00418.12
8.2.90.0060.00318.53
8.2.80.0000.00819.54
8.2.70.0080.00017.88
8.2.60.0000.00818.17
8.2.50.0070.00219.11
8.2.40.0000.00917.88
8.2.30.0000.00718.60
8.2.20.0040.00417.85
8.2.10.0030.00518.46
8.2.00.0050.00218.20
8.1.280.0130.00325.92
8.1.270.0030.00624.15
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00022.58
8.1.230.0040.00821.22
8.1.220.0000.00818.05
8.1.210.0000.00819.22
8.1.200.0000.00917.73
8.1.190.0080.00017.73
8.1.180.0030.00518.10
8.1.170.0060.00318.88
8.1.160.0080.00022.44
8.1.150.0070.00019.06
8.1.140.0000.00717.71
8.1.130.0030.00718.21
8.1.120.0000.00717.84
8.1.110.0000.00817.88
8.1.100.0050.00317.88
8.1.90.0000.00717.88
8.1.80.0050.00317.71
8.1.70.0000.00717.78
8.1.60.0110.00018.00
8.1.50.0030.00517.74
8.1.40.0100.00317.79
8.1.30.0050.00518.04
8.1.20.0000.00818.05
8.1.10.0000.00917.94
8.1.00.0040.00417.67
8.0.300.0070.00020.46
8.0.290.0040.00417.13
8.0.280.0000.00818.65
8.0.270.0050.00217.20
8.0.260.0030.00317.53
8.0.250.0000.00717.17
8.0.240.0000.00717.44
8.0.230.0070.00017.22
8.0.220.0000.00717.11
8.0.210.0000.00817.29
8.0.200.0000.00717.19
8.0.190.0030.00517.42
8.0.180.0060.00317.20
8.0.170.0000.00817.21
8.0.160.0040.00417.15
8.0.150.0000.00817.12
8.0.140.0040.00417.12
8.0.130.0000.00713.81
8.0.120.0060.00317.23
8.0.110.0040.00417.07
8.0.100.0040.00417.25
8.0.90.0040.00417.26
8.0.80.0130.00717.35
8.0.70.0030.00517.19
8.0.60.0040.00417.29
8.0.50.0030.00517.27
8.0.30.0070.01117.49
8.0.20.0120.00717.40
8.0.10.0100.01017.40
8.0.00.0060.01217.36
7.4.330.0000.00515.39
7.4.320.0050.00216.97
7.4.300.0000.00716.70
7.4.290.0050.00216.90
7.4.280.0000.00716.96
7.4.270.0030.00316.82
7.4.260.0070.00016.87
7.4.250.0020.00516.96
7.4.240.0020.00516.85
7.4.230.0000.00717.02
7.4.220.0000.01716.85
7.4.210.0070.00716.80
7.4.200.0000.00716.94
7.4.160.0080.01216.91
7.4.150.0080.01317.17
7.4.140.0080.00917.54
7.4.130.0080.00816.89
7.4.120.0140.00516.82
7.4.110.0080.00916.87
7.4.100.0090.00916.89
7.4.90.0090.01117.01
7.4.80.0080.01018.04
7.4.70.0120.00816.71
7.4.60.0110.00916.82
7.4.50.0070.00616.80
7.4.40.0120.00616.75
7.4.30.0080.01116.83
7.4.20.0110.00816.84
7.4.10.0100.00716.80
7.4.00.0090.01215.60
7.3.330.0000.00713.60
7.3.320.0000.00613.63
7.3.310.0030.00316.80
7.3.300.0000.00716.64
7.3.290.0090.00916.64
7.3.280.0090.00616.58
7.3.270.0120.00717.07
7.3.260.0080.01116.69
7.3.250.0080.00816.85
7.3.240.0070.01016.62
7.3.230.0110.00616.67
7.3.220.0140.00516.70
7.3.210.0090.00816.74
7.3.200.0100.00817.97
7.3.190.0130.00516.78
7.3.180.0090.00716.67
7.3.170.0120.00716.69
7.3.160.0050.01116.74
7.3.150.0040.01516.70
7.3.140.0040.01316.57
7.3.130.0120.00616.51
7.3.120.0080.01015.54
7.3.110.0160.00715.77
7.3.100.0120.01215.72
7.3.90.0020.01615.84
7.3.80.0120.00815.72
7.3.70.0100.01015.71
7.3.60.0080.01015.80
7.3.50.0080.01015.83
7.3.40.0120.00615.87
7.3.30.0120.00515.82
7.3.20.0080.01115.80
7.3.10.0060.01215.77
7.3.00.0410.00215.77
7.2.340.0130.01016.71
7.2.330.0120.00816.72
7.2.320.0140.00716.78
7.2.310.0070.01416.89
7.2.300.0140.00616.86
7.2.290.0060.01416.93
7.2.280.0110.01116.72
7.2.270.0120.00816.65
7.2.260.0150.01116.72
7.2.250.0120.00816.10
7.2.240.0230.00016.03
7.2.230.0130.00815.92
7.2.220.0150.00615.96
7.2.210.0140.00916.02
7.2.200.0120.00815.98
7.2.190.0110.01016.06
7.2.180.0140.00715.85
7.2.170.0120.01215.93
7.2.160.0160.00516.04
7.2.150.0170.00416.10
7.2.140.0120.00915.93
7.2.130.0120.01116.14
7.2.120.0150.00816.31
7.2.110.0150.00616.12
7.2.100.0130.01016.17
7.2.90.0130.01016.14
7.2.80.0190.00416.01
7.2.70.0180.00715.94
7.2.60.0130.00916.48
7.2.50.0180.00716.10
7.2.40.0180.00616.18
7.2.30.0120.00916.16
7.2.20.0150.00816.15
7.2.10.0110.01216.14
7.2.00.0140.00817.24
7.1.330.0240.00514.97
7.1.320.0090.01215.03
7.1.310.0160.00815.11
7.1.300.0210.00115.03
7.1.290.0220.00614.85
7.1.280.0150.00815.04
7.1.270.0190.00314.97
7.1.260.0180.00715.09
7.1.250.0130.01314.90
7.1.240.0170.00814.99
7.1.230.0220.00314.92
7.1.220.0160.01014.95
7.1.210.0120.01215.05
7.1.200.0140.00815.27
7.1.190.0160.01014.93
7.1.180.0200.01014.84
7.1.170.0280.00814.86
7.1.160.0220.00614.94
7.1.150.0140.00814.90
7.1.140.0180.00714.93
7.1.130.0220.00814.95
7.1.120.0180.00614.92
7.1.110.0170.01014.97
7.1.100.0180.00614.83
7.1.90.0300.01314.89
7.1.80.0170.00515.14
7.1.70.0150.00715.67
7.1.60.0100.00815.74
7.1.50.0070.01315.53
7.1.40.0140.00715.49
7.1.30.0100.01215.68
7.1.20.0100.01215.57
7.1.10.0100.00815.55
7.1.00.0110.01015.51
7.0.330.0150.00714.52
7.0.320.0110.00914.61
7.0.310.0180.00914.56
7.0.300.0240.00514.63
7.0.290.0140.01414.50
7.0.280.0150.01114.65
7.0.270.0240.00314.72
7.0.260.0190.00614.48
7.0.250.0170.00714.71
7.0.240.0140.00814.83
7.0.230.0140.00814.80
7.0.220.0150.00814.76
7.0.210.0130.01114.67
7.0.200.0090.00815.52
7.0.190.0140.00515.33
7.0.180.0110.01015.35
7.0.170.0110.01015.27
7.0.160.0140.00615.28
7.0.150.0250.01215.26
7.0.140.0140.00915.32
7.0.130.0110.00915.24
7.0.120.0210.01115.33
7.0.110.0140.01015.30
7.0.100.0100.00715.32
7.0.90.0070.00915.17
7.0.80.0120.00615.39
7.0.70.0080.01015.30
7.0.60.0090.00915.27
7.0.50.0120.00615.34
7.0.40.0170.00114.75
7.0.30.0090.00814.78
7.0.20.0120.00814.62
7.0.10.0100.00614.75
7.0.00.0100.00714.74
5.6.400.0130.01115.37
5.6.390.0170.01115.37
5.6.380.0070.01515.09
5.6.370.0160.01215.14
5.6.360.0090.01415.15
5.6.350.0130.01115.27
5.6.340.0130.01015.18
5.6.330.0160.00915.07
5.6.320.0110.01215.27
5.6.310.0130.01215.10
5.6.300.0140.02117.09
5.6.290.0160.01817.20
5.6.280.0120.02217.21
5.6.270.0050.02817.23
5.6.260.0110.02217.11
5.6.250.0120.02017.10
5.6.240.0120.01817.31
5.6.230.0110.02117.08
5.6.220.0100.02317.34
5.6.210.0090.02117.23
5.6.200.0160.01617.24
5.6.190.0120.02217.30
5.6.180.0140.02017.20
5.6.170.0110.02217.29
5.6.160.0100.02017.22
5.6.150.0080.02317.24
5.6.140.0110.02117.19
5.6.130.0100.02117.27
5.6.120.0080.02517.14
5.6.110.0110.02017.19
5.6.100.0100.02417.29
5.6.90.0130.01717.18
5.6.80.0120.02016.88
5.6.70.0120.01917.00
5.6.60.0130.02816.96
5.6.50.0120.01816.87
5.6.40.0140.01516.88
5.6.30.0050.02416.94
5.6.20.0110.01916.86
5.6.10.0110.01816.83
5.6.00.0110.03216.95
5.5.380.0110.02516.00
5.5.370.0110.02116.01
5.5.360.0150.01715.92
5.5.350.0100.03615.95
5.5.340.0130.02016.28
5.5.330.0120.02216.29
5.5.320.0080.02216.02
5.5.310.0120.01916.16
5.5.300.0100.02116.14
5.5.290.0100.02416.08
5.5.280.0150.02216.06
5.5.270.0100.02116.27
5.5.260.0120.01916.22
5.5.250.0110.02016.09
5.5.240.0130.01715.91
5.5.230.0150.02216.02
5.5.220.0110.02015.86
5.5.210.0090.02115.90
5.5.200.0120.01615.81
5.5.190.0120.01615.98
5.5.180.0120.02015.83
5.5.170.0190.00415.13
5.5.160.0080.02315.93
5.5.150.0120.01815.94
5.5.140.0120.01815.89
5.5.130.0090.02015.72
5.5.120.0130.01615.92
5.5.110.0140.02815.89
5.5.100.0090.02315.84
5.5.90.0070.02316.04
5.5.80.0100.02015.94
5.5.70.0090.02515.96
5.5.60.0090.02015.82
5.5.50.0140.01515.85
5.5.40.0100.02015.93
5.5.30.0090.02115.90
5.5.20.0100.01815.82
5.5.10.0140.01616.00
5.5.00.0160.01715.92
5.4.450.0070.02115.11
5.4.440.0090.02015.07
5.4.430.0110.02215.03
5.4.420.0100.01515.06
5.4.410.0080.01715.04
5.4.400.0080.01714.96
5.4.390.0100.02114.84
5.4.380.0100.02014.91
5.4.370.0070.01814.88
5.4.360.0100.01614.93
5.4.350.0070.02114.84
5.4.340.0080.02414.89
5.4.330.0120.00512.78
5.4.320.0110.01514.83
5.4.310.0060.02014.96
5.4.300.0100.01814.91
5.4.290.0100.01614.94
5.4.280.0080.01814.95
5.4.270.0080.01714.89
5.4.260.0080.01814.94
5.4.250.0110.01514.97
5.4.240.0090.01614.94
5.4.230.0080.01814.83
5.4.220.0110.01514.88
5.4.210.0080.01714.78
5.4.200.0110.02114.79
5.4.190.0120.01414.87
5.4.180.0080.02214.81
5.4.170.0100.01914.87
5.4.160.0100.01814.93
5.4.150.0080.01714.89
5.4.140.0070.02014.06
5.4.130.0060.01714.11
5.4.120.0080.01814.12
5.4.110.0110.01314.08
5.4.100.0070.02114.02
5.4.90.0070.01614.05
5.4.80.0080.01614.15
5.4.70.0080.01814.08
5.4.60.0070.01914.09
5.4.50.0090.01614.07
5.4.40.0070.01614.15
5.4.30.0090.01614.14
5.4.20.0080.02814.12
5.4.10.0070.01714.17
5.4.00.0080.01613.81
5.3.290.0100.01613.65
5.3.280.0040.02013.58
5.3.270.0090.01713.66
5.3.260.0090.01913.63
5.3.250.0040.02013.60
5.3.240.0050.02013.63
5.3.230.0040.02113.66
5.3.220.0070.01813.64
5.3.210.0060.02113.55
5.3.200.0100.01613.53
5.3.190.0050.02013.45
5.3.180.0090.02413.64
5.3.170.0090.02013.66
5.3.160.0080.01813.54
5.3.150.0070.01813.54
5.3.140.0070.01713.67
5.3.130.0090.01613.62
5.3.120.0060.01813.60
5.3.110.0040.02113.70
5.3.100.0070.01813.30
5.3.90.0070.02013.46
5.3.80.0070.01713.40
5.3.70.0070.01713.38
5.3.60.0060.02513.43
5.3.50.0100.02113.37
5.3.40.0080.02413.41
5.3.30.0100.01413.37
5.3.20.0060.01713.42
5.3.10.0060.01813.27
5.3.00.0060.01713.31
5.2.170.0080.00812.39
5.2.160.0160.00012.28
5.2.150.0140.00312.20
5.2.140.0270.00812.34
5.2.130.0070.01112.27
5.2.120.0160.00512.19
5.2.110.0080.01112.32
5.2.100.0090.01212.43
5.2.90.0040.01312.27
5.2.80.0140.00412.26
5.2.70.0110.01112.20
5.2.60.0110.01012.00
5.2.50.0100.00712.18
5.2.40.0100.00712.14
5.2.30.0090.01212.13
5.2.20.0080.00812.06
5.2.10.0110.01112.26
5.2.00.0120.00912.05
5.1.60.0110.00711.28
5.1.50.0090.00611.43
5.1.40.0030.01311.37
5.1.30.0040.01111.46
5.1.20.0110.00411.59
5.1.10.0130.00411.46
5.1.00.0070.00711.34
5.0.50.0130.00011.24
5.0.40.0050.00711.24
5.0.30.0060.01011.24
5.0.20.0060.00911.24
5.0.10.0080.00911.24
5.0.00.0060.00611.24
4.4.90.0050.00511.24
4.4.80.0070.00511.24
4.4.70.0070.00011.24
4.4.60.0100.00011.24
4.4.50.0060.00611.24
4.4.40.0040.00411.24
4.4.30.0080.00011.24
4.4.20.0050.00211.24
4.4.10.0060.00111.24
4.4.00.0040.00211.24
4.3.110.0080.00011.24
4.3.100.0000.00911.24
4.3.90.0050.00311.24
4.3.80.0070.00211.24
4.3.70.0050.00211.24
4.3.60.0070.00011.24
4.3.50.0040.00411.24
4.3.40.0040.00411.24
4.3.30.0060.00011.24
4.3.20.0060.00011.24
4.3.10.0060.00011.24
4.3.00.0030.00311.24

preferences:
48.25 ms | 401 KiB | 5 Q