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') 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.0070.01418.80
8.3.50.0090.00721.39
8.3.40.0150.00019.09
8.3.30.0070.00720.71
8.3.20.0040.00420.57
8.3.10.0050.00222.42
8.3.00.0000.00822.95
8.2.180.0120.00918.66
8.2.170.0150.00022.96
8.2.160.0030.01220.80
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0030.00620.16
8.2.110.0030.00622.68
8.2.100.0060.00619.58
8.2.90.0080.00019.47
8.2.80.0000.00819.64
8.2.70.0000.00818.00
8.2.60.0000.00918.30
8.2.50.0040.00418.07
8.2.40.0050.00318.72
8.2.30.0040.00418.54
8.2.20.0040.00417.97
8.2.10.0000.00818.05
8.2.00.0000.00718.15
8.1.280.0170.00325.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00324.29
8.1.230.0060.00619.46
8.1.220.0030.00618.16
8.1.210.0000.00818.77
8.1.200.0080.00517.50
8.1.190.0040.00417.90
8.1.180.0060.00319.13
8.1.170.0000.00818.96
8.1.160.0070.00022.54
8.1.150.0000.01018.98
8.1.140.0030.00517.81
8.1.130.0000.00818.25
8.1.120.0000.00817.78
8.1.110.0000.00817.68
8.1.100.0050.00317.89
8.1.90.0040.00417.81
8.1.80.0040.00417.80
8.1.70.0040.00417.76
8.1.60.0000.00818.07
8.1.50.0000.00817.94
8.1.40.0000.00917.98
8.1.30.0040.00418.07
8.1.20.0050.00517.96
8.1.10.0050.00517.83
8.1.00.0020.00917.87
8.0.300.0070.00018.77
8.0.290.0040.00417.55
8.0.280.0040.00418.85
8.0.270.0000.00817.59
8.0.260.0000.00717.21
8.0.250.0030.00317.42
8.0.240.0040.00417.37
8.0.230.0040.00417.31
8.0.220.0030.00517.40
8.0.210.0050.00317.30
8.0.200.0040.00417.35
8.0.190.0050.00217.46
8.0.180.0040.00417.20
8.0.170.0080.00017.42
8.0.160.0030.00317.46
8.0.150.0010.00817.24
8.0.140.0030.00617.23
8.0.130.0020.00715.49
8.0.120.0030.00717.29
8.0.110.0070.00217.29
8.0.100.0080.00117.22
8.0.90.0000.00917.30
8.0.80.0050.00817.18
8.0.70.0100.00017.20
8.0.60.0040.00517.19
8.0.50.0030.00617.15
8.0.30.0090.00717.35
8.0.20.0100.00617.35
8.0.10.0080.00217.42
8.0.00.0070.01117.40
7.4.330.0000.00515.00
7.4.320.0070.00016.93
7.4.300.0040.00416.91
7.4.290.0030.00616.87
7.4.280.0000.00717.08
7.4.270.0060.00416.96
7.4.260.0040.00716.95
7.4.250.0090.00216.95
7.4.240.0060.00416.86
7.4.230.0040.00516.82
7.4.220.0090.00616.80
7.4.210.0080.00516.92
7.4.200.0050.00417.02
7.4.190.0060.00417.01
7.4.180.0110.00016.94
7.4.160.0040.01016.98
7.4.150.0080.01017.11
7.4.140.0100.00617.51
7.4.130.0090.00616.81
7.4.120.0100.00616.88
7.4.110.0060.01016.83
7.4.100.0080.00516.83
7.4.90.0090.00316.93
7.4.80.0080.00518.05
7.4.70.0030.00916.82
7.4.60.0100.00316.90
7.4.50.0030.00516.68
7.4.40.0040.00719.79
7.4.30.0040.00816.64
7.4.20.0070.00016.69
7.4.10.0000.00716.70
7.4.00.0070.00315.91
7.3.330.0050.00415.04
7.3.320.0110.00415.09
7.3.310.0180.00316.64
7.3.300.0110.00316.56
7.3.290.0180.00216.74
7.3.280.0140.00716.75
7.3.270.0140.00416.92
7.3.260.0180.00316.68
7.3.250.0140.00616.82
7.3.240.0110.00716.71
7.3.230.0110.00816.81
7.3.220.0120.00716.68
7.3.210.0130.00516.77
7.3.200.0120.00718.04
7.3.190.0130.00816.53
7.3.180.0130.00416.87
7.3.170.0120.00716.63
7.3.160.0120.00516.83
7.3.150.0160.00316.50
7.3.140.0150.00816.53
7.3.130.0100.01016.58
7.3.120.0110.00715.89
7.3.110.0130.00716.23
7.3.100.0130.00516.32
7.3.90.0190.00016.85
7.3.80.0140.00516.50
7.3.70.0170.00216.81
7.3.60.0150.00416.60
7.3.50.0160.00216.80
7.3.40.0140.00516.82
7.3.30.0140.00516.70
7.3.20.0140.00518.34
7.3.10.0130.00618.40
7.3.00.0150.00518.59
7.2.340.0060.01216.55
7.2.330.0110.01116.77
7.2.320.0160.00516.85
7.2.310.0160.00617.01
7.2.300.0120.00916.94
7.2.290.0130.00816.86
7.2.280.0100.01016.91
7.2.270.0180.00416.71
7.2.260.0130.00616.50
7.2.250.0130.00616.51
7.2.240.0100.01016.64
7.2.230.0120.00616.62
7.2.220.0180.00016.87
7.2.210.0180.00016.86
7.2.200.0210.00016.66
7.2.190.0110.00816.66
7.2.180.0080.01117.02
7.2.170.0110.00817.05
7.2.160.0120.00717.03
7.2.150.0120.00618.90
7.2.140.0180.00018.57
7.2.130.0160.00418.81
7.2.120.0100.01018.97
7.2.110.0170.00318.99
7.2.100.0170.00318.64
7.2.90.0170.00318.91
7.2.80.0100.01018.88
7.2.70.0110.00818.91
7.2.60.0180.00018.79
7.2.50.0170.00418.91
7.2.40.0090.00918.89
7.2.30.0140.00618.78
7.2.20.0180.00318.97
7.2.10.0130.00718.94
7.2.00.0130.00619.13
7.1.330.0100.00817.44
7.1.320.0140.00417.43
7.1.310.0130.00417.65
7.1.300.0170.00017.62
7.1.290.0110.00617.61
7.1.280.0100.00717.52
7.1.270.0120.00617.48
7.1.260.0170.00017.51
7.1.250.0130.00517.72
7.1.240.0180.00017.50
7.1.230.0150.00317.74
7.1.220.0120.00617.80
7.1.210.0190.00017.83
7.1.200.0140.00417.64
7.1.190.0140.00517.56
7.1.180.0090.00917.42
7.1.170.0150.00417.75
7.1.160.0140.00417.75
7.1.150.0140.00417.35
7.1.140.0180.00017.68
7.1.130.0090.00917.78
7.1.120.0120.00917.60
7.1.110.0140.00417.28
7.1.100.0100.00617.79
7.1.90.0110.00717.59
7.1.80.0130.00417.78
7.1.70.0080.00517.26
7.1.60.0110.00718.40
7.1.50.0130.00717.36
7.1.40.0120.00617.79
7.1.30.0180.00017.70
7.1.20.0150.00317.52
7.1.10.0180.00017.65
7.1.00.0140.03420.12
7.0.330.0190.00017.29
7.0.320.0200.00017.52
7.0.310.0100.00717.54
7.0.300.0090.00917.52
7.0.290.0140.00317.29
7.0.280.0080.00917.52
7.0.270.0110.00617.46
7.0.260.0080.00817.39
7.0.250.0140.00417.21
7.0.240.0140.00317.23
7.0.230.0140.00317.56
7.0.220.0140.00317.59
7.0.210.0130.00517.25
7.0.200.0130.00516.16
7.0.190.0140.00417.48
7.0.180.0140.00317.25
7.0.170.0140.00317.22
7.0.160.0130.00417.36
7.0.150.0120.00517.46
7.0.140.0080.03719.89
7.0.130.0120.00517.36
7.0.120.0170.00017.26
7.0.110.0150.00317.12
7.0.100.0180.00017.13
7.0.90.0100.00717.08
7.0.80.0130.00417.44
7.0.70.0120.00417.30
7.0.60.0090.04718.82
7.0.50.0140.03717.67
7.0.40.0150.04019.06
7.0.30.0230.03718.87
7.0.20.0200.02218.97
7.0.10.0220.04318.98
7.0.00.0060.03818.75
5.6.400.0140.00316.22
5.6.390.0170.00015.93
5.6.380.0120.00615.94
5.6.370.0180.00015.94
5.6.360.0040.01316.22
5.6.350.0140.00516.18
5.6.340.0170.00315.80
5.6.330.0100.00715.89
5.6.320.0140.00316.16
5.6.310.0100.00716.15
5.6.300.0160.00015.75
5.6.290.0170.00016.25
5.6.280.0100.03718.63
5.6.270.0120.00516.19
5.6.260.0100.00715.82
5.6.250.0150.00316.04
5.6.240.0120.00515.86
5.6.230.0110.00616.27
5.6.220.0130.00416.29
5.6.210.0100.04418.55
5.6.200.0120.04317.37
5.6.190.0070.04818.39
5.6.180.0240.02718.60
5.6.170.0160.02318.54
5.6.160.0070.04918.46
5.6.150.0080.04217.38
5.6.140.0090.02517.14
5.6.130.0110.03317.31
5.6.120.0130.03418.70
5.6.110.0100.04518.57
5.6.100.0060.03918.70
5.6.90.0080.02218.68
5.6.80.0070.03318.32
5.6.70.0240.03518.41
5.6.60.0120.00415.93
5.6.50.0130.00315.81
5.6.40.0110.00516.20
5.6.30.0080.00815.98
5.6.20.0090.00616.13
5.6.10.0160.00016.01
5.6.00.0120.00415.81
5.5.380.0170.00016.29
5.5.370.0150.00316.12
5.5.360.0100.01015.86
5.5.350.0180.02618.34
5.5.340.0110.03017.04
5.5.330.0130.01818.27
5.5.320.0200.02318.04
5.5.310.0110.02918.23
5.5.300.0060.03317.06
5.5.290.0110.02717.05
5.5.280.0100.04418.55
5.5.270.0120.04218.58
5.5.260.0080.02218.51
5.5.250.0140.03218.48
5.5.240.0100.04018.13
5.5.230.0060.01016.01
5.5.220.0120.00316.17
5.5.210.0110.00516.37
5.5.200.0160.00015.80
5.5.190.0150.00016.02
5.5.180.0140.00316.05
5.5.170.0130.00315.77
5.5.160.0120.00416.02
5.5.150.0110.00515.87
5.5.140.0130.00315.96
5.5.130.0100.00515.99
5.5.120.0160.00015.96
5.5.110.0170.00015.89
5.5.100.0160.00016.13
5.5.90.0090.00615.98
5.5.80.0160.00016.17
5.5.70.0110.00615.87
5.5.60.0170.00016.16
5.5.50.0160.00015.95
5.5.40.0110.00415.77
5.5.30.0150.00016.04
5.5.20.0120.00416.16
5.5.10.0150.00015.82
5.5.00.0120.00415.94
5.4.450.0310.02816.47
5.4.440.0650.02716.16
5.4.430.0530.03516.07
5.4.420.0540.02716.47
5.4.410.0110.03016.05
5.4.400.0700.03215.92
5.4.390.0620.03616.01
5.4.380.0180.02815.86
5.4.370.0090.03115.82
5.4.360.0130.02715.77
5.4.350.0120.02312.40
5.4.340.0100.02312.53
5.4.330.0100.00312.85
5.4.320.0090.01912.67
5.4.310.0090.02312.81
5.4.300.0090.01912.90
5.4.290.0090.02212.72
5.4.280.0070.02112.82
5.4.270.0090.02312.86
5.4.260.0090.02012.72
5.4.250.0090.03015.76
5.4.240.0100.03515.93
5.4.230.0090.03215.89
5.4.220.0100.02815.70
5.4.210.0070.03015.88
5.4.200.0110.02415.91
5.4.190.0120.03615.72
5.4.180.0140.02515.81
5.4.170.0110.03015.76
5.4.160.0110.02715.95
5.4.150.0120.02615.82
5.4.140.0170.02714.71
5.4.130.0060.03014.54
5.4.120.0140.03214.60
5.4.110.0090.02814.78
5.4.100.0080.02714.71
5.4.90.0110.02514.59
5.4.80.0110.03314.60
5.4.70.0100.03314.54
5.4.60.0110.02614.71
5.4.50.0060.02914.85
5.4.40.0140.02114.63
5.4.30.0100.02414.53
5.4.20.0100.02614.65
5.4.10.0120.03414.65
5.4.00.0070.03414.53
5.3.290.0110.02313.08
5.3.280.0110.03514.04
5.3.270.0070.03014.02
5.3.260.0100.02714.06
5.3.250.0070.03714.19
5.3.240.0120.03614.09
5.3.230.0060.02913.96
5.3.220.0060.03013.90
5.3.210.0100.02713.83
5.3.200.0100.02513.82
5.3.190.0120.02313.98
5.3.180.0080.03513.99
5.3.170.0120.03714.07
5.3.160.0100.03313.92
5.3.150.0100.03714.16
5.3.140.0080.02713.85
5.3.130.0090.03614.06
5.3.120.0080.02814.12
5.3.110.0070.03114.04
5.3.100.0050.02813.67
5.3.90.0120.02513.82
5.3.80.0060.03013.65
5.3.70.0060.02813.79
5.3.60.0100.02513.75
5.3.50.0110.02313.77
5.3.40.0080.02713.51
5.3.30.0090.02413.82
5.3.20.0120.02213.48
5.3.10.0080.02613.33
5.3.00.0080.02713.45

preferences:
45.48 ms | 401 KiB | 5 Q