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"]/d[@age="*" or @age="39-59"]/d'); 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.0090.00618.68
8.3.50.0160.00622.24
8.3.40.0120.00319.04
8.3.30.0110.00419.04
8.3.20.0030.00618.98
8.3.10.0050.00320.96
8.3.00.0080.00023.95
8.2.180.0090.01217.00
8.2.170.0110.01122.96
8.2.160.0180.00320.77
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00519.77
8.2.110.0070.00321.49
8.2.100.0080.00418.16
8.2.90.0000.00819.65
8.2.80.0090.00018.18
8.2.70.0060.00318.00
8.2.60.0040.00418.17
8.2.50.0000.00818.18
8.2.40.0000.00818.47
8.2.30.0040.00420.22
8.2.20.0030.00618.12
8.2.10.0080.00018.25
8.2.00.0030.00517.87
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0140.00026.35
8.1.250.0120.00328.09
8.1.240.0030.00622.79
8.1.230.0070.00421.25
8.1.220.0040.00418.77
8.1.210.0040.00419.03
8.1.200.0050.00517.50
8.1.190.0040.00417.64
8.1.180.0040.00418.10
8.1.170.0030.00619.02
8.1.160.0000.00719.16
8.1.150.0040.00418.93
8.1.140.0060.00317.77
8.1.130.0030.00318.21
8.1.120.0040.00417.80
8.1.110.0000.00817.63
8.1.100.0030.00517.60
8.1.90.0000.00717.63
8.1.80.0000.00717.59
8.1.70.0030.00317.77
8.1.60.0040.00417.89
8.1.50.0000.00817.54
8.1.40.0050.00317.76
8.1.30.0000.00717.96
8.1.20.0000.00917.80
8.1.10.0030.00517.80
8.1.00.0050.00317.74
8.0.300.0040.00420.22
8.0.290.0040.00417.00
8.0.280.0070.00018.70
8.0.270.0000.00817.58
8.0.260.0030.00317.25
8.0.250.0040.00417.33
8.0.240.0030.00717.36
8.0.230.0000.00717.14
8.0.220.0020.00517.30
8.0.210.0030.00317.07
8.0.200.0030.00717.19
8.0.190.0040.00417.35
8.0.180.0050.00317.35
8.0.170.0030.00617.11
8.0.160.0100.00017.23
8.0.150.0030.00617.25
8.0.140.0050.01216.98
8.0.130.0060.00313.50
8.0.120.0000.00717.26
8.0.110.0000.00717.20
8.0.100.0000.00817.02
8.0.90.0000.00817.30
8.0.80.0030.01217.21
8.0.70.0000.00817.22
8.0.60.0050.00217.11
8.0.50.0030.00517.21
8.0.30.0110.00817.48
8.0.20.0100.00817.51
8.0.10.0070.00017.21
8.0.00.0100.00716.94
7.4.330.0050.00015.05
7.4.320.0060.00016.70
7.4.300.0000.00716.75
7.4.290.0030.00316.85
7.4.280.0070.00016.64
7.4.270.0070.00016.86
7.4.260.0060.00013.49
7.4.250.0060.00316.80
7.4.240.0000.00716.95
7.4.230.0050.00316.73
7.4.220.0030.01716.91
7.4.210.0070.00816.87
7.4.200.0030.00516.75
7.4.190.0030.00316.71
7.4.160.0100.00716.78
7.4.150.0110.00817.40
7.4.140.0060.01017.86
7.4.130.0100.00716.75
7.4.120.0120.00516.68
7.4.110.0140.00416.84
7.4.100.0030.01416.73
7.4.90.0030.01616.66
7.4.80.0130.01019.04
7.4.70.0050.01116.85
7.4.60.0060.01216.63
7.4.50.0000.00516.61
7.4.40.0090.00522.27
7.4.30.0040.01216.90
7.4.10.0090.00916.83
7.4.00.0030.01415.93
7.3.330.0000.00613.36
7.3.320.0000.00613.40
7.3.310.0030.00316.70
7.3.300.0000.00716.48
7.3.290.0090.00616.53
7.3.280.0050.01216.55
7.3.270.0060.01417.40
7.3.260.0130.00518.24
7.3.250.0120.01016.63
7.3.240.0060.01616.87
7.3.230.0110.00716.46
7.3.210.0080.00816.64
7.3.200.0060.01619.39
7.3.190.0150.00616.75
7.3.180.0080.00816.50
7.3.170.0070.01016.92
7.3.160.0100.00616.58
7.3.130.0100.01016.75
7.3.120.0050.01115.76
7.3.110.0060.00916.82
7.3.100.0030.01316.82
7.3.90.0060.00916.69
7.3.80.0080.00816.64
7.3.70.0000.01216.61
7.3.60.0150.00016.35
7.3.50.0040.01116.68
7.3.40.0040.01116.27
7.3.30.0040.01116.42
7.3.20.0100.00718.39
7.3.10.0030.00618.23
7.3.00.0090.00618.20
7.2.330.0070.01016.89
7.2.320.0070.01016.75
7.2.310.0150.00616.96
7.2.300.0120.01216.95
7.2.290.0030.01616.53
7.2.260.0120.00316.68
7.2.250.0030.01716.48
7.2.240.0100.00716.76
7.2.230.0090.00616.94
7.2.220.0070.01116.46
7.2.210.0040.01116.53
7.2.200.0040.01116.93
7.2.190.0080.00416.62
7.2.180.0040.00916.60
7.2.170.0040.01116.59
7.2.160.0070.01016.61
7.2.150.0070.01018.45
7.2.140.0000.01418.52
7.2.130.0030.01318.53
7.2.120.0090.00918.59
7.2.110.0070.00418.71
7.2.100.0030.01318.66
7.2.90.0100.00718.31
7.2.80.0070.01018.52
7.2.70.0040.01818.52
7.2.60.0100.01318.29
7.2.50.0100.01418.65
7.2.40.0070.01018.62
7.2.30.0030.01018.53
7.2.20.0090.00618.62
7.2.10.0110.00418.59
7.2.00.0040.01418.68
7.1.330.0030.01317.69
7.1.320.0080.00817.52
7.1.310.0000.01317.56
7.1.300.0000.01417.61
7.1.290.0060.00317.76
7.1.280.0000.01217.38
7.1.270.0130.00317.53
7.1.260.0070.00717.53
7.1.250.0070.01017.64
7.1.240.0030.01217.63
7.1.230.0070.01017.48
7.1.220.0060.00917.59
7.1.210.0040.00817.50
7.1.200.0090.00617.60
7.1.190.0070.00717.64
7.1.180.0030.01017.51
7.1.170.0000.00917.54
7.1.160.0060.01017.52
7.1.150.0090.00617.63
7.1.140.0090.00717.77
7.1.130.0140.00017.52
7.1.120.0030.01417.49
7.1.110.0060.01517.62
7.1.100.0070.00717.98
7.1.90.0070.01417.66
7.1.80.0060.01017.51
7.1.70.0040.01317.42
7.1.60.0020.01918.62
7.1.50.0030.01717.34
7.1.40.0060.00917.62
7.1.30.0120.00017.68
7.1.20.0130.00317.66
7.1.10.0040.01117.57
7.1.00.0050.03520.18
7.0.330.0070.00717.53
7.0.320.0110.00417.29
7.0.310.0060.00917.21
7.0.300.0030.00617.18
7.0.290.0040.01117.40
7.0.280.0090.00617.49
7.0.270.0000.01717.38
7.0.260.0070.01017.47
7.0.250.0060.01317.25
7.0.240.0150.00417.43
7.0.230.0060.01617.31
7.0.220.0100.01217.48
7.0.210.0090.00917.37
7.0.200.0080.00417.10
7.0.190.0030.01017.13
7.0.180.0100.00717.42
7.0.170.0100.00717.51
7.0.160.0090.00617.18
7.0.150.0060.00917.14
7.0.140.0070.03719.77
7.0.130.0000.01517.25
7.0.120.0080.00817.37
7.0.110.0000.01117.27
7.0.100.0100.00317.16
7.0.90.0060.00917.23
7.0.80.0040.01217.38
7.0.70.0040.00717.23
7.0.60.0100.03918.66
7.0.50.0060.04217.63
7.0.40.0070.04016.64
7.0.30.0100.04016.71
7.0.20.0130.03816.55
7.0.10.0070.03316.51
7.0.00.0080.02316.59
5.6.400.0000.01316.20
5.6.390.0090.00916.32
5.6.380.0040.01115.93
5.6.370.0000.01016.20
5.6.360.0030.00715.88
5.6.350.0070.00716.09
5.6.340.0060.00616.36
5.6.330.0040.01516.32
5.6.320.0150.00415.96
5.6.310.0120.00316.07
5.6.300.0000.01016.03
5.6.290.0040.00816.24
5.6.280.0050.03918.71
5.6.270.0070.00716.09
5.6.260.0040.00816.24
5.6.250.0120.00316.00
5.6.240.0030.00916.03
5.6.230.0120.00316.04
5.6.220.0040.00716.09
5.6.210.0100.04218.43
5.6.200.0050.03617.16
5.6.190.0070.04217.30
5.6.180.0050.02317.21
5.6.170.0050.03517.25
5.6.160.0020.03717.13
5.6.150.0100.02317.16
5.6.140.0060.03017.25
5.6.130.0100.03017.18
5.6.120.0020.02917.27
5.6.110.0090.03417.19
5.6.100.0050.02617.16
5.6.90.0080.02717.17
5.6.80.0100.02816.75
5.6.70.0050.04116.87
5.6.60.0080.03516.94
5.6.50.0050.02216.91
5.6.40.0090.04216.86
5.6.30.0070.04117.03
5.6.20.0000.03116.84
5.6.10.0080.04316.93
5.6.00.0090.03916.74
5.5.380.0000.01515.61
5.5.370.0060.00816.24
5.5.360.0030.01015.88
5.5.350.2160.02118.41
5.5.340.0080.02317.20
5.5.330.0090.02217.17
5.5.320.0070.04017.11
5.5.310.0080.04317.18
5.5.300.0100.03517.10
5.5.290.0120.03017.17
5.5.280.0020.02717.07
5.5.270.0080.03617.04
5.5.260.0050.03017.20
5.5.250.0080.02216.89
5.5.240.0080.04016.83
5.5.230.0030.02516.81
5.5.220.0070.04316.64
5.5.210.0050.02116.81
5.5.200.0050.03016.61
5.5.190.0070.02116.67
5.5.180.0110.04116.82
5.5.170.0060.00916.10
5.5.160.0100.03116.66
5.5.150.0040.03616.86
5.5.140.0020.03216.79
5.5.130.0070.03816.67
5.5.120.0120.03816.80
5.5.110.0080.03316.82
5.5.100.0060.04116.64
5.5.90.0120.04216.58
5.5.80.0040.03716.67
5.5.70.0080.03816.66
5.5.60.0030.04316.75
5.5.50.0060.04216.68
5.5.40.0090.03216.63
5.5.30.0070.04316.73
5.5.20.0050.04516.73
5.5.10.0090.03416.45
5.5.00.0030.04616.66
5.4.450.0070.03316.19
5.4.440.0050.03916.23
5.4.430.0080.03716.14
5.4.420.0100.03716.17
5.4.410.0100.02416.05
5.4.400.0080.01816.07
5.4.390.0050.03915.92
5.4.380.0060.02115.91
5.4.370.0050.04215.89
5.4.360.0130.03015.96
5.4.350.0090.03416.01
5.4.340.0050.03115.89
5.4.330.0090.00912.82
5.4.320.0030.04116.03
5.4.310.0060.04015.87
5.4.300.0050.02015.96
5.4.290.0080.01915.82
5.4.280.0050.02515.99
5.4.270.0060.04115.95
5.4.260.0040.03815.92
5.4.250.0050.04215.86
5.4.240.0030.02516.01
5.4.230.0080.04115.97
5.4.220.0120.03615.85
5.4.210.0030.03715.96
5.4.200.0080.03315.92
5.4.190.0090.04215.93
5.4.180.0030.03315.91
5.4.170.0030.02415.89
5.4.160.0050.04416.07
5.4.150.0100.01715.89
5.4.140.0070.01814.66
5.4.130.0100.03514.54
5.4.120.0020.04314.52
5.4.110.0050.04014.57
5.4.100.0070.03814.48
5.4.90.0040.03714.67
5.4.80.0050.02314.47
5.4.70.0020.03714.51
5.4.60.0020.04114.50
5.4.50.0050.04214.59
5.4.40.0070.02214.58
5.4.30.0080.03714.46
5.4.20.0050.04114.57
5.4.10.0080.03314.59
5.4.00.0070.04014.18
5.3.290.0050.04813.96
5.3.280.0050.04214.05
5.3.270.0100.03713.94
5.3.260.0060.04214.08
5.3.250.0020.03314.08
5.3.240.0080.03813.90
5.3.230.0060.03113.88
5.3.220.0050.04113.86
5.3.210.0040.02914.02
5.3.200.0030.02613.98
5.3.190.0050.02813.96
5.3.180.0070.04014.03
5.3.170.0050.02313.94
5.3.160.0040.02714.06
5.3.150.0050.02713.90
5.3.140.0030.04314.11
5.3.130.0100.03813.99
5.3.120.0070.03313.85
5.3.110.0010.03614.01
5.3.100.0070.03813.81
5.3.90.0040.04113.74
5.3.80.0050.04013.62
5.3.70.0020.03013.73
5.3.60.0050.02513.63
5.3.50.0070.03713.61
5.3.40.0050.03713.63
5.3.30.0000.04213.55
5.3.20.0070.02313.60
5.3.10.0020.04413.24
5.3.00.0050.03313.33
5.2.170.0000.07011.41
5.2.160.0070.04711.29
5.2.150.0130.05311.26
5.2.140.0130.05711.13
5.2.130.0100.02311.35
5.2.120.0070.06011.25
5.2.110.0030.05711.35
5.2.100.0000.03311.34
5.2.90.0070.02711.36
5.2.80.0030.03011.33
5.2.70.0070.06011.24
5.2.60.0070.06011.16
5.2.50.0100.05311.15
5.2.40.0030.05711.07
5.2.30.0000.04311.22
5.2.20.0030.04711.10
5.2.10.0130.05311.04
5.2.00.0070.04710.95
5.1.60.0170.04310.21
5.1.50.0000.04310.06
5.1.40.0070.03310.18
5.1.30.0000.03010.46
5.1.20.0030.02710.63
5.1.10.0100.02010.13
5.1.00.0070.05310.38
5.0.50.0030.0478.82
5.0.40.0070.0408.47
5.0.30.0000.0638.49
5.0.20.0000.0508.36
5.0.10.0000.0438.20
5.0.00.0000.0608.48
4.4.90.0000.0177.48
4.4.80.0070.0307.48
4.4.70.0170.0237.48
4.4.60.0030.0337.48
4.4.50.0030.0337.48
4.4.40.0030.0237.48
4.4.30.0070.0337.48
4.4.20.0130.0037.48
4.4.10.0000.0237.48
4.4.00.0030.0537.48
4.3.110.0030.0337.48
4.3.100.0000.0277.48
4.3.90.0030.0377.48
4.3.80.0070.0477.48
4.3.70.0030.0337.48
4.3.60.0030.0277.48
4.3.50.0030.0377.48
4.3.40.0000.0337.48
4.3.30.0030.0377.48
4.3.20.0000.0337.48
4.3.10.0000.0237.48
4.3.00.0100.0077.48

preferences:
66.2 ms | 401 KiB | 5 Q