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"]/@id'); 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.70.0150.00316.86
8.3.60.0070.00717.00
8.3.50.0040.01517.63
8.3.40.0100.00618.92
8.3.30.0090.00918.80
8.3.20.0040.00419.02
8.3.10.0060.00320.96
8.3.00.0100.01319.63
8.2.180.0140.00717.00
8.2.170.0170.00422.96
8.2.160.0070.00720.77
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00417.88
8.2.110.0070.00322.60
8.2.100.0030.00918.16
8.2.90.0040.00417.88
8.2.80.0040.00417.97
8.2.70.0040.00418.28
8.2.60.0000.00818.18
8.2.50.0000.00918.18
8.2.40.0050.00521.01
8.2.30.0000.00818.49
8.2.20.0030.00817.91
8.2.10.0080.00018.05
8.2.00.0070.00417.97
8.1.280.0150.00025.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00324.08
8.1.230.0040.00721.22
8.1.220.0080.00018.04
8.1.210.0060.00318.77
8.1.200.0000.01117.25
8.1.190.0050.00317.60
8.1.180.0090.00318.10
8.1.170.0030.00618.77
8.1.160.0040.00419.21
8.1.150.0000.00718.84
8.1.140.0050.00217.67
8.1.130.0030.00318.11
8.1.120.0070.00417.86
8.1.110.0030.00517.66
8.1.100.0000.00717.75
8.1.90.0060.00317.77
8.1.80.0000.00717.58
8.1.70.0000.00617.78
8.1.60.0000.01217.91
8.1.50.0000.00817.65
8.1.40.0000.00817.73
8.1.30.0040.00417.93
8.1.20.0030.00617.68
8.1.10.0040.00417.82
8.1.00.0030.00617.64
8.0.300.0040.00422.28
8.0.290.0080.00017.00
8.0.280.0030.00318.74
8.0.270.0070.00017.46
8.0.260.0000.00717.09
8.0.250.0000.00717.14
8.0.240.0080.00017.14
8.0.230.0040.00417.22
8.0.220.0030.00317.31
8.0.210.0040.00417.23
8.0.200.0000.00717.15
8.0.190.0080.00017.39
8.0.180.0050.00317.13
8.0.170.0060.00317.22
8.0.160.0040.00417.27
8.0.150.0030.00916.90
8.0.140.0080.00017.22
8.0.130.0000.00613.76
8.0.120.0030.00517.09
8.0.110.0070.00017.01
8.0.100.0040.00417.10
8.0.90.0030.00517.11
8.0.80.0070.00717.10
8.0.70.0000.00717.27
8.0.60.0060.00317.11
8.0.50.0050.00217.19
8.0.30.0110.00717.02
8.0.20.0100.00917.44
8.0.10.0040.00417.34
8.0.00.0120.00617.13
7.4.330.0050.00013.31
7.4.320.0040.00416.85
7.4.300.0040.00416.72
7.4.290.0030.00316.84
7.4.280.0000.01116.88
7.4.270.0000.00716.89
7.4.260.0000.00613.51
7.4.250.0060.00316.71
7.4.240.0080.00016.96
7.4.230.0040.00416.72
7.4.220.0060.00916.81
7.4.210.0090.00616.81
7.4.200.0030.00316.80
7.4.190.0070.00016.87
7.4.160.0090.00616.82
7.4.150.0160.00316.71
7.4.140.0130.00416.67
7.4.130.0060.01116.64
7.4.120.0070.01016.77
7.4.110.0140.00316.67
7.4.100.0090.01516.61
7.4.90.0110.00816.76
7.4.80.0100.00619.39
7.4.70.0110.00616.84
7.4.60.0030.01716.71
7.4.50.0000.00916.92
7.4.40.0110.00316.66
7.4.30.0130.00316.75
7.4.00.0050.01015.13
7.3.330.0000.00613.20
7.3.320.0060.00013.33
7.3.310.0070.00016.64
7.3.300.0070.00016.50
7.3.290.0060.00916.57
7.3.280.0110.00816.47
7.3.270.0110.00716.68
7.3.260.0100.00716.84
7.3.250.0090.00916.74
7.3.240.0120.01216.50
7.3.230.0060.01216.66
7.3.210.0130.00316.49
7.3.200.0060.01216.79
7.3.190.0100.01116.95
7.3.180.0070.01016.83
7.3.170.0060.01316.67
7.3.160.0090.00916.84
7.3.120.0130.00314.92
7.3.110.0130.00314.67
7.3.100.0100.00314.93
7.3.90.0040.00414.99
7.3.80.0070.00714.59
7.3.70.0030.01314.99
7.3.60.0030.00714.87
7.3.50.0030.00914.85
7.3.40.0000.01114.67
7.3.30.0000.01614.92
7.3.20.0060.00316.68
7.3.10.0040.00716.64
7.3.00.0050.00516.73
7.2.330.0090.00916.86
7.2.320.0120.00616.52
7.2.310.0090.00916.95
7.2.300.0060.01216.72
7.2.290.0070.01016.64
7.2.250.0040.01514.96
7.2.240.0130.00714.93
7.2.230.0110.00414.72
7.2.220.0030.01015.02
7.2.210.0030.01014.96
7.2.200.0070.01014.97
7.2.190.0070.00715.11
7.2.180.0120.00415.25
7.2.170.0060.00615.09
7.2.130.0000.01216.88
7.2.120.0040.00917.03
7.2.110.0090.00617.01
7.2.100.0070.00716.96
7.2.90.0050.00517.00
7.2.80.0050.01016.67
7.2.70.0000.01416.86
7.2.60.0060.00917.17
7.2.50.0060.00917.00
7.2.40.0040.01117.07
7.2.30.0090.00417.07
7.2.20.0000.01416.97
7.2.10.0090.00616.73
7.2.00.0030.01317.11
7.1.330.0030.01015.56
7.1.320.0070.00315.93
7.1.310.0030.01015.78
7.1.300.0080.00415.78
7.1.290.0080.00415.70
7.1.280.0000.01116.16
7.1.270.0070.00415.89
7.1.260.0030.01015.64
7.1.250.0000.01415.66
7.1.240.0060.00615.86
7.1.230.0100.00016.00
7.1.220.0080.00615.95
7.1.210.0030.01015.96
7.1.200.0050.01015.80
7.1.190.0030.01315.74
7.1.180.0100.00015.88
7.1.170.0100.00615.95
7.1.160.0060.00315.82
7.1.150.0110.00415.95
7.1.140.0090.00915.88
7.1.130.0100.00315.91
7.1.120.0070.00315.80
7.1.110.0070.00715.70
7.1.100.0100.00316.09
7.1.90.0130.00015.95
7.1.80.0070.00715.87
7.1.70.0000.00916.51
7.1.60.0060.00616.40
7.1.50.0040.01316.33
7.1.40.0090.00615.91
7.1.30.0060.00615.92
7.1.20.0130.00315.82
7.1.10.0040.01215.87
7.1.00.0050.03819.23
7.0.330.0090.00315.62
7.0.320.0060.01115.40
7.0.310.0030.01015.37
7.0.300.0060.00615.52
7.0.290.0000.01315.52
7.0.280.0070.00715.52
7.0.270.0030.01015.52
7.0.260.0040.01215.49
7.0.250.0060.00615.67
7.0.240.0000.01215.62
7.0.230.0050.00515.60
7.0.220.0060.00615.55
7.0.210.0030.01015.74
7.0.200.0040.01016.16
7.0.190.0090.00315.41
7.0.180.0050.00515.50
7.0.170.0000.01215.50
7.0.160.0070.00715.53
7.0.150.0070.00315.25
7.0.140.0020.04119.03
7.0.130.0100.00015.49
7.0.120.0030.04118.93
7.0.110.0040.01115.49
7.0.100.0140.00015.61
7.0.90.0070.00715.52
7.0.80.0060.01215.70
7.0.70.0000.01615.38
7.0.60.0130.04017.73
7.0.50.0080.04116.79
7.0.40.0050.02616.88
7.0.30.0150.03416.91
7.0.20.0120.02517.00
7.0.10.0070.04516.92
7.0.00.0090.02216.96
5.6.380.0030.01014.68
5.6.370.0030.01014.32
5.6.360.0080.00414.50
5.6.350.0070.00714.43
5.6.340.0090.00614.15
5.6.330.0030.01214.40
5.6.320.0060.00614.10
5.6.310.0070.00714.64
5.6.300.0060.00314.00
5.6.290.0070.00714.07
5.6.280.0050.04217.63
5.6.270.0000.01414.34
5.6.260.0060.00314.77
5.6.250.0060.00314.43
5.6.240.0080.00414.36
5.6.230.0030.00614.33
5.6.220.0090.00614.55
5.6.210.0040.02717.58
5.6.200.0050.03716.35
5.6.190.0070.04717.62
5.6.180.0130.04217.52
5.6.170.0140.02517.57
5.6.160.0040.03917.52
5.6.150.0070.03516.36
5.6.140.0120.04216.55
5.6.130.0070.02316.43
5.6.120.0070.03618.01
5.6.110.0070.04917.75
5.6.100.0120.04017.80
5.6.90.0080.04617.78
5.6.80.0090.01917.49
5.6.70.0080.00614.25
5.6.60.0070.00714.29
5.6.50.0060.01014.61
5.6.40.0040.01214.57
5.6.30.0090.00314.50
5.6.20.0070.00714.28
5.6.10.0100.00314.41
5.6.00.0040.01214.39
5.5.380.0120.00011.18
5.5.370.0000.01011.18
5.5.360.0030.00911.18
5.5.350.0150.02215.91
5.5.340.0020.02414.68
5.5.330.0050.03215.82
5.5.320.0150.02615.86
5.5.310.0140.02715.79
5.5.300.0070.04314.67
5.5.290.0070.02014.69
5.5.280.0080.02616.16
5.5.270.0090.04316.17
5.5.260.0070.02516.17
5.5.250.0140.03716.06
5.5.240.1980.02215.69
5.5.230.0000.00711.20
5.5.220.0000.00811.18
5.5.210.0070.00411.18
5.5.200.0060.00311.18
5.5.190.0060.00011.18
5.5.180.0000.01211.29
5.5.170.0090.00011.18
5.5.160.0060.00311.18
5.5.150.0000.00911.18
5.5.140.0030.00911.18
5.5.130.0030.00711.25
5.5.120.0000.00711.18
5.5.110.0040.00411.34
5.5.100.0040.00811.18
5.5.90.0040.00711.18
5.5.80.0030.00911.18
5.5.70.0000.00811.18
5.5.60.0030.00611.18
5.5.50.0000.00911.18
5.5.40.0030.00611.18
5.5.30.0000.00911.18
5.5.20.0000.00711.18
5.5.10.0000.01211.18
5.5.00.0080.00411.18
5.4.450.0040.02315.49
5.4.440.0070.04015.45
5.4.430.0030.04315.40
5.4.420.0030.04315.39
5.4.410.0070.04015.26
5.4.400.0090.03915.27
5.4.390.0060.03915.16
5.4.380.0040.03815.10
5.4.370.0090.02815.29
5.4.360.0080.02515.27
5.4.350.0070.02515.29
5.4.340.0020.04315.06
5.4.330.0030.00911.18
5.4.320.0050.04215.23
5.4.310.0030.04515.29
5.4.300.0070.02115.25
5.4.290.0060.03015.24
5.4.280.0070.04015.32
5.4.270.0050.04115.24
5.4.260.0070.02215.07
5.4.250.0030.02815.28
5.4.240.0050.02315.06
5.4.230.0040.04315.16
5.4.220.0070.02515.24
5.4.210.0030.02315.28
5.4.200.0000.03815.24
5.4.190.0080.04215.28
5.4.180.0080.03815.09
5.4.170.0080.03115.16
5.4.160.0040.04015.28
5.4.150.0050.02915.24
5.4.140.0100.03713.81
5.4.130.0060.02813.81
5.4.120.0070.03313.76
5.4.110.0080.03813.80
5.4.100.0080.04213.83
5.4.90.0090.03513.81
5.4.80.0050.02213.84
5.4.70.0050.04013.78
5.4.60.0050.04013.84
5.4.50.0090.02813.83
5.4.40.0030.03213.78
5.4.30.0100.03413.85
5.4.20.0050.03513.87
5.4.10.0090.02013.87
5.4.00.0020.02213.55
5.3.290.0020.03013.01
5.3.280.0100.03712.96
5.3.270.0020.04212.99
5.3.260.0100.03312.91
5.3.250.0070.04012.92
5.3.240.0030.04012.91
5.3.230.0050.02712.91
5.3.220.0050.04312.92
5.3.210.0070.04212.95
5.3.200.0070.04012.96
5.3.190.0040.03212.97
5.3.180.0020.02912.91
5.3.170.0070.03512.95
5.3.160.0100.03612.98
5.3.150.0050.03612.95
5.3.140.0040.03112.90
5.3.130.0030.04512.98
5.3.120.0120.03812.95
5.3.110.0070.02512.92
5.3.100.0020.02112.62
5.3.90.0060.02112.66
5.3.80.0030.02312.68
5.3.70.0030.01912.71
5.3.60.0020.02112.64
5.3.50.0090.01712.66
5.3.40.0090.01612.62
5.3.30.0000.02212.56
5.3.20.0050.02212.49
5.3.10.0050.02012.40
5.3.00.0030.02012.49
5.2.170.0010.01611.32
5.2.160.0030.01711.24
5.2.150.0000.02011.22
5.2.140.0030.01611.21
5.2.130.0030.01811.21
5.2.120.0030.01711.24
5.2.110.0000.02011.16
5.2.100.0030.01711.29
5.2.90.0030.01511.16
5.2.80.0070.01511.17
5.2.70.0020.01811.19
5.2.60.0050.01711.14
5.2.50.0020.02011.21
5.2.40.0030.01811.12
5.2.30.0030.01511.12
5.2.20.0040.01611.19
5.2.10.0050.01511.15
5.2.00.0060.01311.01
5.1.60.0020.01310.75
5.1.50.0050.01310.63
5.1.40.0030.01410.72
5.1.30.0030.01510.88
5.1.20.0020.01510.93
5.1.10.0000.01710.76
5.1.00.0030.01410.71
5.0.50.0050.0099.96
5.0.40.0020.0129.83
5.0.30.0000.0199.81
5.0.20.0090.0059.80
5.0.10.0020.0129.80
5.0.00.0030.0169.80
4.4.90.0020.0089.80
4.4.80.0020.0099.80
4.4.70.0030.0109.80
4.4.60.0000.0129.80
4.4.50.0000.0129.80
4.4.40.0010.0139.80
4.4.30.0000.0129.80
4.4.20.0020.0089.80
4.4.10.0020.0089.80
4.4.00.0020.0139.80
4.3.110.0020.0129.80
4.3.100.0000.0109.80
4.3.90.0020.0089.80
4.3.80.0000.0159.80
4.3.70.0020.0089.80
4.3.60.0020.0079.80
4.3.50.0020.0109.80
4.3.40.0010.0139.80
4.3.30.0000.0109.80
4.3.20.0020.0129.80
4.3.10.0000.0099.80
4.3.00.0000.0109.80

preferences:
48.35 ms | 401 KiB | 5 Q