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); $result=$xml->xpath('//scale[@gender="*" or @gender="m"][@age="*" or @age="39-59"]/d[@scid="hi"][@raw="10"]/@t'); var_dump($result);

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.0040.01218.55
8.3.50.0060.01217.55
8.3.40.0040.01419.22
8.3.30.0070.00718.77
8.3.20.0040.00418.89
8.3.10.0090.00018.93
8.3.00.0170.00017.50
8.2.180.0070.01017.00
8.2.170.0110.00722.96
8.2.160.0100.00618.89
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0090.00026.16
8.2.120.0080.00021.55
8.2.110.0090.00020.89
8.2.100.0080.00418.09
8.2.90.0040.00720.86
8.2.80.0040.00420.98
8.2.70.0040.00418.18
8.2.60.0040.00418.47
8.2.50.0030.00518.10
8.2.40.0080.00019.64
8.2.30.0000.00918.13
8.2.20.0000.00917.86
8.2.10.0040.00417.84
8.2.00.0080.00017.94
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01024.11
8.1.230.0070.00421.22
8.1.220.0040.00418.03
8.1.210.0080.00019.47
8.1.200.0090.00017.48
8.1.190.0000.00817.60
8.1.180.0080.00018.10
8.1.170.0000.00818.87
8.1.160.0030.00618.91
8.1.150.0070.00018.92
8.1.140.0050.00317.65
8.1.130.0000.00717.77
8.1.120.0000.01017.54
8.1.110.0050.00317.80
8.1.100.0040.00417.80
8.1.90.0040.00417.54
8.1.80.0040.00317.60
8.1.70.0000.00817.79
8.1.60.0030.00617.75
8.1.50.0000.00817.83
8.1.40.0090.00017.67
8.1.30.0000.00817.73
8.1.20.0040.00417.80
8.1.10.0040.00417.67
8.1.00.0060.00317.62
8.0.300.0000.00820.27
8.0.290.0060.00317.13
8.0.280.0030.00518.78
8.0.270.0050.00217.47
8.0.260.0030.00317.09
8.0.250.0040.00417.36
8.0.240.0030.00417.38
8.0.230.0000.00717.14
8.0.220.0030.00517.24
8.0.210.0040.00417.32
8.0.200.0000.00717.36
8.0.190.0030.00517.19
8.0.180.0040.00417.32
8.0.170.0060.00317.25
8.0.160.0040.00417.30
8.0.150.0000.00817.20
8.0.140.0040.00417.00
8.0.130.0000.00513.73
8.0.120.0030.00617.03
8.0.110.0080.00017.21
8.0.100.0050.00317.29
8.0.90.0000.00717.20
8.0.80.0070.01017.25
8.0.70.0000.00817.09
8.0.60.0040.00417.29
8.0.50.0090.00017.19
8.0.30.0120.00617.26
8.0.20.0130.00817.16
8.0.10.0040.00417.23
8.0.00.0070.01217.11
7.4.330.0060.00013.21
7.4.320.0030.00316.82
7.4.300.0000.00616.83
7.4.290.0030.00516.73
7.4.280.0030.00416.89
7.4.270.0080.00016.83
7.4.260.0060.00013.56
7.4.250.0000.00716.93
7.4.240.0040.00316.93
7.4.230.0000.00716.92
7.4.220.0160.01016.73
7.4.210.0120.00816.76
7.4.200.0000.00716.84
7.4.190.0000.00816.83
7.4.160.0110.00616.84
7.4.150.0120.00616.83
7.4.140.0200.00617.86
7.4.130.0160.01016.78
7.4.120.0070.01016.75
7.4.110.0070.01116.91
7.4.100.0120.00616.79
7.4.90.0120.00616.80
7.4.80.0000.01719.39
7.4.70.0110.00517.05
7.4.60.0060.01116.94
7.4.50.0000.00916.68
7.4.40.0120.00616.44
7.4.30.0110.00716.77
7.4.00.0060.01015.02
7.3.330.0000.00813.17
7.3.320.0020.00513.45
7.3.310.0040.00416.65
7.3.300.0050.00216.43
7.3.290.0070.00916.53
7.3.280.0090.00916.63
7.3.270.0090.01216.82
7.3.260.0140.00316.52
7.3.240.0030.01416.77
7.3.230.0110.00716.57
7.3.210.0090.00916.73
7.3.200.0170.00316.69
7.3.190.0110.00516.63
7.3.180.0060.01016.63
7.3.170.0110.00516.64
7.3.160.0030.01216.64
7.3.120.0060.00915.17
7.3.110.0040.01115.09
7.3.100.0090.00614.82
7.3.90.0100.01014.66
7.3.80.0140.00014.83
7.3.70.0100.00014.77
7.3.60.0060.00914.88
7.3.50.0120.00414.74
7.3.40.0100.00714.98
7.3.30.0060.00314.78
7.3.20.0070.00316.90
7.3.10.0090.00316.62
7.3.00.0130.00316.81
7.2.330.0030.01616.77
7.2.320.0110.01216.68
7.2.310.0060.01616.89
7.2.300.0130.00316.94
7.2.290.0030.01416.71
7.2.250.0030.01815.18
7.2.240.0160.00315.12
7.2.230.0000.01015.08
7.2.220.0040.01114.98
7.2.210.0100.00715.25
7.2.200.0110.00415.18
7.2.190.0000.01415.09
7.2.180.0070.00715.02
7.2.170.0110.00415.16
7.2.00.0060.00919.42
7.1.330.0040.01215.88
7.1.320.0100.01015.78
7.1.310.0030.01015.86
7.1.300.0030.01015.69
7.1.290.0060.00915.61
7.1.280.0000.01015.76
7.1.270.0030.01015.87
7.1.260.0120.00315.93
7.1.100.0050.00518.12
7.1.70.0040.00417.39
7.1.60.0140.00719.25
7.1.50.0040.01817.14
7.1.00.0100.07022.60
7.0.200.0000.00916.56
7.0.140.0030.07722.27
7.0.120.0030.07322.34
7.0.60.0070.05320.14
7.0.50.0100.08018.09
7.0.40.0070.08320.27
7.0.30.0500.07720.40
7.0.20.0130.04720.22
7.0.10.0200.03720.21
7.0.00.0130.08020.38
5.6.280.0070.07021.14
5.6.210.0130.06020.65
5.6.200.0100.03318.31
5.6.190.0100.08320.66
5.6.180.0300.07720.88
5.6.170.0230.04020.68
5.6.160.0130.07020.55
5.6.150.0100.05718.40
5.6.140.0130.07318.37
5.6.130.0000.05018.37
5.6.120.0070.04021.18
5.6.110.0100.08321.27
5.6.100.0070.04021.17
5.6.90.0130.07721.11
5.6.80.0000.04320.50
5.6.70.0200.04020.65
5.5.350.0270.06320.50
5.5.340.0000.05718.09
5.5.330.0100.08320.69
5.5.320.0030.09020.66
5.5.310.0330.07320.51
5.5.300.0130.07718.14
5.5.290.0000.05318.14
5.5.280.0000.08720.81
5.5.270.0130.07720.83
5.5.260.0070.06721.02
5.5.250.0030.09320.73
5.5.240.0130.05720.31
5.4.450.0130.09019.56
5.4.440.0200.03319.40
5.4.430.0100.07719.61
5.4.420.0030.04019.61
5.4.410.0070.04719.29
5.4.400.0130.05019.36
5.4.390.0130.05019.38
5.4.380.0030.04019.06
5.4.370.0000.04719.04
5.4.360.0130.05319.35
5.4.350.0100.05319.32
5.4.340.0070.05319.22
5.4.320.0070.03719.22
5.4.310.0070.04719.32
5.4.300.0100.03319.35
5.4.290.0100.03719.34
5.4.280.0030.03319.08
5.4.270.0030.05019.44
5.4.260.0170.02319.07
5.4.250.0100.03719.15
5.4.240.0070.05319.29
5.4.230.0100.03319.07
5.4.220.0070.03719.05
5.4.210.0000.03719.44
5.4.200.0000.04019.32
5.4.190.0030.03319.07
5.4.180.0000.04319.28
5.4.170.0030.04019.07
5.4.160.0070.03319.36
5.4.150.0730.04319.27
5.4.140.0730.03716.45
5.4.130.0670.03716.49
5.4.120.0730.03016.59
5.4.110.0700.03316.71
5.4.100.0830.03316.68
5.4.90.0430.04316.66
5.4.80.0600.04316.63
5.4.70.0470.04316.32
5.4.60.0600.05016.46
5.4.50.0430.03016.70
5.4.40.0500.03716.55
5.4.30.0470.03716.63
5.4.20.0300.04016.39
5.4.10.0800.04316.65
5.4.00.0630.02716.01
5.3.290.0230.03015.70
5.3.280.0230.04315.75
5.3.270.0100.04715.75
5.3.260.0030.04715.75
5.3.250.0600.03015.75
5.3.240.0270.03715.79
5.3.230.0700.03315.79
5.3.220.0500.03715.79
5.3.210.0400.05715.79
5.3.200.0430.04715.79
5.3.190.0430.04015.79
5.3.180.0400.04315.79
5.3.170.0430.04315.79
5.3.160.0500.04315.79
5.3.150.0470.04715.79
5.3.140.0630.02715.79
5.3.130.0670.06315.79
5.3.120.0670.04015.79
5.3.110.0400.05315.79
5.3.100.0500.04015.79
5.3.90.0700.04315.79
5.3.80.0430.03015.79
5.3.70.0830.03315.79
5.3.60.0530.02715.79
5.3.50.0570.04315.79
5.3.40.0600.04715.79
5.3.30.0730.03015.79
5.3.20.0330.04015.79
5.3.10.0530.03015.79
5.3.00.0700.02715.79
5.2.170.0470.04015.79
5.2.160.0130.03315.79
5.2.150.0670.04015.79
5.2.140.0230.03315.79
5.2.130.0170.03315.79
5.2.120.0470.03015.79
5.2.110.0570.02715.79
5.2.100.0630.02015.79
5.2.90.0430.02715.79
5.2.80.0430.03715.79
5.2.70.0400.02715.79
5.2.60.0400.04315.73
5.2.50.0570.03015.73
5.2.40.0370.03315.73
5.2.30.0400.03715.73
5.2.20.0230.02015.73
5.2.10.0200.04015.73
5.2.00.0170.02715.73
5.1.60.0370.02715.73
5.1.50.0330.02315.73
5.1.40.0630.02015.73
5.1.30.0270.03015.73
5.1.20.0400.03015.73
5.1.10.0470.02315.73
5.1.00.0170.02315.73
5.0.50.0000.02015.73
5.0.40.0130.01715.73
5.0.30.0230.02715.73
5.0.20.0070.02315.73
5.0.10.0200.02015.73
5.0.00.0130.02715.73
4.4.90.0300.00715.73
4.4.80.0170.01015.73
4.4.70.0370.01015.73
4.4.60.0130.01315.73
4.4.50.0030.01715.73
4.4.40.0230.03015.73
4.4.30.0200.01715.73
4.4.20.0070.01315.73
4.4.10.0130.01715.73
4.4.00.0170.02715.73
4.3.110.0200.01715.73
4.3.100.0130.01015.73
4.3.90.0130.01715.73
4.3.80.0230.02715.73
4.3.70.0230.02315.73
4.3.60.0330.01715.73
4.3.50.0070.01715.73
4.3.40.0100.02315.73
4.3.30.0000.02015.73
4.3.20.0100.02715.73
4.3.10.0100.02015.73
4.3.00.0130.01315.73

preferences:
47.35 ms | 400 KiB | 5 Q