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"]/@t/@raw') 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.00318.70
8.3.50.0100.00522.37
8.3.40.0100.01018.98
8.3.30.0100.00319.21
8.3.20.0000.00820.72
8.3.10.0040.00423.99
8.3.00.0100.00017.63
8.2.180.0070.01418.66
8.2.170.0110.01122.96
8.2.160.0070.00720.90
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00722.71
8.2.110.0030.00722.83
8.2.100.0080.00418.28
8.2.90.0040.00419.25
8.2.80.0050.00318.18
8.2.70.0090.00017.88
8.2.60.0000.00818.30
8.2.50.0070.00318.07
8.2.40.0070.00018.53
8.2.30.0000.00818.54
8.2.20.0030.00517.99
8.2.10.0050.00218.10
8.2.00.0040.00418.14
8.1.280.0100.00325.92
8.1.270.0040.00424.32
8.1.260.0030.00726.35
8.1.250.0040.00428.09
8.1.240.0040.00424.21
8.1.230.0120.00019.52
8.1.220.0000.00817.93
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0040.00417.77
8.1.180.0030.00618.10
8.1.170.0030.00518.79
8.1.160.0040.00422.30
8.1.150.0000.00918.89
8.1.140.0000.00817.79
8.1.130.0000.00718.20
8.1.120.0030.00417.70
8.1.110.0000.00817.63
8.1.100.0000.00717.79
8.1.90.0030.00617.84
8.1.80.0000.00717.63
8.1.70.0050.00217.62
8.1.60.0040.00417.79
8.1.50.0040.00417.73
8.1.40.0060.00317.74
8.1.30.0040.00418.02
8.1.20.0040.00417.87
8.1.10.0000.00717.65
8.1.00.0000.00717.85
8.0.300.0040.00418.77
8.0.290.0070.00017.43
8.0.280.0070.00018.82
8.0.270.0030.00517.56
8.0.260.0000.00617.13
8.0.250.0040.00417.23
8.0.240.0000.00817.43
8.0.230.0040.00417.44
8.0.220.0000.00817.19
8.0.210.0040.00417.37
8.0.200.0000.00717.25
8.0.190.0050.00317.41
8.0.180.0040.00417.23
8.0.170.0050.00217.41
8.0.160.0000.00717.23
8.0.150.0000.00817.35
8.0.140.0000.00717.35
8.0.130.0000.00713.59
8.0.120.0090.00017.32
8.0.110.0030.00517.16
8.0.100.0040.00417.11
8.0.90.0040.00417.30
8.0.80.0060.00917.09
8.0.70.0030.00517.33
8.0.60.0080.00017.14
8.0.50.0030.00617.18
8.0.30.0140.00617.58
8.0.20.0090.00817.60
8.0.10.0050.00317.30
8.0.00.0110.00817.08
7.4.330.0000.00515.44
7.4.320.0000.00716.75
7.4.300.0000.00716.81
7.4.290.0030.00316.89
7.4.280.0040.00416.92
7.4.270.0070.00016.84
7.4.260.0070.00016.99
7.4.250.0040.00416.95
7.4.240.0000.00716.89
7.4.230.0000.00716.87
7.4.220.0110.00716.88
7.4.210.0060.01116.86
7.4.200.0040.00416.82
7.4.190.0000.00716.96
7.4.160.0060.00916.92
7.4.150.0160.00617.40
7.4.140.0100.00717.86
7.4.130.0100.01116.85
7.4.120.0050.01116.84
7.4.110.0040.01616.84
7.4.100.0140.00316.79
7.4.90.0070.01016.68
7.4.80.0120.00619.39
7.4.70.0160.00316.66
7.4.60.0130.00316.84
7.4.50.0030.00516.53
7.4.40.0040.01122.77
7.4.30.0040.01716.72
7.4.00.0070.00715.22
7.3.330.0050.00013.51
7.3.320.0020.00213.58
7.3.310.0000.00716.55
7.3.300.0000.00716.66
7.3.290.0070.01416.59
7.3.280.0090.00816.56
7.3.270.0100.00917.40
7.3.260.0150.01216.50
7.3.250.0080.01116.69
7.3.240.0150.00316.61
7.3.230.0070.01116.81
7.3.210.0130.00616.74
7.3.200.0160.00619.39
7.3.190.0130.01016.74
7.3.180.0150.00716.89
7.3.170.0090.00616.66
7.3.160.0030.01316.61
7.3.120.0040.01214.95
7.3.10.0060.00316.68
7.3.00.0030.01016.37
7.2.330.0100.01016.94
7.2.320.0030.01316.90
7.2.310.0090.01216.96
7.2.300.0140.02917.11
7.2.290.0060.01617.12
7.2.130.0080.00416.68
7.2.120.0090.00616.86
7.2.110.0000.01416.57
7.2.100.0030.00916.73
7.2.90.0150.01116.64
7.2.80.0070.01016.99
7.2.70.0100.01016.98
7.2.60.0200.00616.95
7.2.50.0080.00317.18
7.2.40.0090.00717.11
7.2.30.0150.00716.62
7.2.20.0070.00317.17
7.2.10.0090.00316.85
7.2.00.0100.00518.09
7.1.250.0030.00515.75
7.1.100.0040.00417.98
7.1.70.0000.01717.28
7.1.60.0150.00919.31
7.1.50.0110.01516.68
7.1.00.0070.07322.59
7.0.200.0000.01017.07
7.0.140.0070.07022.18
7.0.60.0100.05720.18
7.0.50.0030.05018.02
7.0.40.0100.04020.56
7.0.30.0270.08320.49
7.0.20.0370.06720.49
7.0.10.0030.05720.32
7.0.00.0000.09320.24
5.6.280.0000.07721.24
5.6.210.0100.08320.66
5.6.200.0130.07718.38
5.6.190.0100.03720.93
5.6.180.0130.04320.89
5.6.170.0330.07020.75
5.6.160.0070.08020.64
5.6.150.0030.08018.37
5.6.140.0030.04318.30
5.6.130.0070.07318.37
5.6.120.0070.05321.20
5.6.110.0200.07021.28
5.6.100.0200.07321.11
5.6.90.0070.05321.15
5.6.80.0130.03020.57
5.5.350.0000.03320.53
5.5.340.0130.05018.14
5.5.330.0000.07320.69
5.5.320.0230.06020.39
5.5.310.0470.06320.43
5.5.300.0070.08318.09
5.5.290.0070.05318.17
5.5.280.0070.06320.97
5.5.270.0170.06321.13
5.5.260.0000.04320.92
5.5.250.0070.07720.95
5.5.240.0130.05720.35
5.4.450.1100.04019.65
5.4.440.0770.05319.66
5.4.430.0970.04719.70
5.4.420.0830.05319.82
5.4.410.0730.05319.45
5.4.400.0430.04719.23
5.4.390.0800.06019.54
5.4.380.0330.04718.92
5.4.370.0230.05018.91
5.4.360.0030.06718.66
5.4.350.0230.05018.62
5.4.340.0230.05718.69
5.4.320.0110.03912.73
5.4.310.0060.04212.73
5.4.300.0110.04212.73
5.4.290.0040.04212.73
5.4.280.0040.03612.63
5.4.270.0100.03512.63
5.4.260.0060.04312.63
5.4.250.0080.04612.63
5.4.240.0080.04212.63
5.4.230.0050.04312.62
5.4.220.0170.04112.61
5.4.210.0150.04312.61
5.4.200.0160.04712.61
5.4.190.0190.04112.61
5.4.180.0150.04412.61
5.4.170.0390.08212.62
5.4.160.0160.04712.61
5.4.150.0330.08912.61
5.4.140.0190.04012.29
5.4.130.0100.05012.28
5.4.120.0150.04312.24
5.4.110.0190.03812.23
5.4.100.0150.04412.23
5.4.90.0160.04312.23
5.4.80.0190.03812.23
5.4.70.0250.06112.23
5.4.60.0150.04212.23
5.4.50.0150.04312.22
5.4.40.0170.04112.20
5.4.30.0130.04512.20
5.4.20.0390.08112.20
5.4.10.0190.04012.20
5.4.00.0150.04611.70
5.3.290.0050.04012.99
5.3.280.0040.06012.92
5.3.270.0190.04612.92
5.3.260.0160.04612.92
5.3.250.0120.05412.92
5.3.240.0190.04512.92
5.3.230.0240.04112.91
5.3.220.0190.04412.88
5.3.210.0450.08612.88
5.3.200.0180.04712.88
5.3.190.0160.05212.88
5.3.180.0210.04212.88
5.3.170.0190.04312.88
5.3.160.0150.05112.88
5.3.150.0200.04112.88
5.3.140.0180.04512.87
5.3.130.0160.04812.86
5.3.120.0300.09512.86
5.3.110.0180.04412.86
5.3.100.0170.04612.34
5.3.90.0130.04512.32
5.3.80.0200.03912.32
5.3.70.0180.04212.31
5.3.60.0150.04512.29
5.3.50.0140.04612.24
5.3.40.0200.04312.24
5.3.30.0170.04212.21
5.3.20.0190.04111.99
5.3.10.0190.03911.96
5.3.00.0190.04211.94
5.2.170.0130.0379.45
5.2.160.0110.0399.45
5.2.150.0170.0329.44
5.2.140.0150.0339.44
5.2.130.0130.0359.39
5.2.120.0120.0389.40
5.2.110.0190.0309.41
5.2.100.0150.0349.40
5.2.90.0170.0349.40
5.2.80.0160.0369.39
5.2.70.0150.0369.39
5.2.60.0180.0339.35
5.2.50.0150.0419.32
5.2.40.0140.0399.29
5.2.30.0110.0389.26
5.2.20.0190.0329.29
5.2.10.0160.0329.20
5.2.00.0160.0329.06
5.1.60.0240.0518.35
5.1.50.0110.0398.35
5.1.40.0170.0258.32
5.1.30.0130.0318.68
5.1.20.0110.0348.70
5.1.10.0140.0338.42
5.1.00.0130.0308.42
5.0.50.0140.0236.89
5.0.40.0100.0276.75
5.0.30.0120.0346.57
5.0.20.0120.0236.55
5.0.10.0090.0256.52
5.0.00.0100.0366.51
4.4.90.0090.0174.78
4.4.80.0160.0704.75
4.4.70.0090.0184.75
4.4.60.0060.0224.75
4.4.50.0130.0164.77
4.4.40.0100.0274.71
4.4.30.0100.0174.76
4.4.20.0090.0174.84
4.4.10.0080.0204.85
4.4.00.0110.0264.76
4.3.110.0060.0204.66
4.3.100.0120.0154.67
4.3.90.0130.0174.63
4.3.80.0070.0304.59
4.3.70.0110.0174.63
4.3.60.0120.0184.63
4.3.50.0080.0184.63
4.3.40.0140.0564.54
4.3.30.0070.0213.31
4.3.20.0080.0213.30
4.3.10.0080.0213.25
4.3.00.0030.01315.59

preferences:
42.03 ms | 401 KiB | 5 Q