3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '<user><prop name="A"><sub name="X"></sub></prop><prop name="B"><sub name="Y"></sub></prop></user>'; $xml = new DomDocument; $xml->loadXML($data); $xpath = new DomXpath($xml); var_dump( $xpath->query('//sub[@name="Y"]'));

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.0150.00018.43
8.3.50.0120.01022.24
8.3.40.0090.01219.15
8.3.30.0060.00918.79
8.3.20.0080.00018.95
8.3.10.0030.00521.21
8.3.00.0040.00424.03
8.2.180.0120.00318.92
8.2.170.0130.00322.96
8.2.160.0120.00320.63
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0040.00421.29
8.2.110.0030.00720.85
8.2.100.0090.00318.09
8.2.90.0000.00819.47
8.2.80.0030.00519.59
8.2.70.0000.00917.75
8.2.60.0040.00418.05
8.2.50.0050.00318.07
8.2.40.0080.00018.34
8.2.30.0070.00019.73
8.2.20.0000.00917.88
8.2.10.0040.00417.94
8.2.00.0000.01118.02
8.1.280.0150.00625.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.86
8.1.230.0080.00421.22
8.1.220.0040.00418.77
8.1.210.0050.00319.28
8.1.200.0000.00817.60
8.1.190.0000.00717.53
8.1.180.0000.00818.10
8.1.170.0000.00819.03
8.1.160.0000.00719.20
8.1.150.0060.00318.91
8.1.140.0050.00217.67
8.1.130.0030.00318.12
8.1.120.0040.00317.68
8.1.110.0080.00017.60
8.1.100.0000.00717.75
8.1.90.0040.00417.78
8.1.80.0000.00717.75
8.1.70.0030.00317.67
8.1.60.0060.00317.75
8.1.50.0000.00817.80
8.1.40.0030.00517.69
8.1.30.0000.00817.82
8.1.20.0050.00317.75
8.1.10.0040.00417.90
8.1.00.0000.00817.85
8.0.300.0050.00320.16
8.0.290.0030.00617.43
8.0.280.0040.00418.73
8.0.270.0030.00317.61
8.0.260.0000.00717.13
8.0.250.0050.00317.30
8.0.240.0000.00817.07
8.0.230.0030.00317.33
8.0.220.0000.00716.96
8.0.210.0000.00717.25
8.0.200.0070.00017.32
8.0.190.0050.00317.12
8.0.180.0000.00717.25
8.0.170.0030.00517.08
8.0.160.0070.00016.95
8.0.150.0070.00017.11
8.0.140.0000.00817.02
8.0.130.0000.00513.51
8.0.120.0030.00616.99
8.0.110.0040.00417.20
8.0.100.0040.00417.13
8.0.90.0070.00017.02
8.0.80.0110.00417.22
8.0.70.0050.00217.05
8.0.60.0040.00417.13
8.0.50.0070.00017.12
8.0.30.0100.00717.18
8.0.20.0120.00717.40
8.0.10.0040.00417.21
8.0.00.0090.01217.13
7.4.330.0000.00517.02
7.4.320.0000.00716.83
7.4.300.0000.00716.72
7.4.290.0000.00816.80
7.4.280.0030.00316.80
7.4.270.0000.00716.83
7.4.260.0000.00613.56
7.4.250.0030.00516.70
7.4.240.0030.00416.73
7.4.230.0000.00716.86
7.4.220.0110.00816.76
7.4.210.0080.01116.84
7.4.200.0080.00016.65
7.4.190.0000.00716.70
7.4.160.0160.00016.64
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0110.00816.76
7.4.120.0110.00616.73
7.4.110.0110.00616.61
7.4.100.0110.01416.78
7.4.90.0100.00716.67
7.4.80.0130.00319.39
7.4.70.0070.00916.60
7.4.60.0070.01016.62
7.4.50.0000.00816.54
7.4.40.0100.00622.77
7.4.30.0120.00716.84
7.4.00.0060.00914.82
7.3.330.0000.00513.14
7.3.320.0000.00713.09
7.3.310.0000.00716.63
7.3.300.0000.00716.43
7.3.290.0060.00916.42
7.3.280.0090.00716.55
7.3.270.0140.00517.40
7.3.260.0130.00818.24
7.3.250.0110.00616.58
7.3.240.0070.01016.47
7.3.230.0140.00716.79
7.3.210.0150.00316.60
7.3.200.0100.01319.39
7.3.190.0130.00916.37
7.3.180.0040.01216.80
7.3.170.0060.00916.51
7.3.160.0000.01716.80
7.3.120.0000.01514.92
7.2.330.0120.00616.87
7.2.320.0110.00516.87
7.2.310.0110.00616.66
7.2.300.0130.01016.53
7.2.290.0070.01016.78
7.1.70.0000.01117.31
7.1.60.0110.01419.08
7.1.50.0130.01017.05
7.1.00.0030.05722.61
7.0.200.0000.00717.06
7.0.140.0030.07322.21
7.0.100.0070.08020.17
7.0.90.0270.04320.27
7.0.80.0070.08720.06
7.0.70.0030.08320.10
7.0.60.0030.04719.98
7.0.50.0100.08720.37
7.0.40.0030.08320.22
7.0.30.0070.05320.17
7.0.20.0100.07320.32
7.0.10.0070.07720.21
7.0.00.0100.08020.30
5.6.280.0030.07321.31
5.6.250.0130.07320.66
5.6.240.0200.06020.89
5.6.230.0130.07720.77
5.6.220.0030.05020.88
5.6.210.0070.08720.96
5.6.200.0030.08321.16
5.6.190.0100.07321.16
5.6.180.0100.08321.30
5.6.170.0100.08021.32
5.6.160.0070.07321.25
5.6.150.0000.08321.34
5.6.140.0070.08321.20
5.6.130.0130.04321.18
5.6.120.0130.08021.21
5.6.110.0100.08021.30
5.6.100.0030.06021.21
5.6.90.0100.06721.18
5.6.80.0100.08020.58
5.6.70.0070.08320.57
5.6.60.0030.08020.57
5.6.50.0100.09320.63
5.6.40.0070.05320.56
5.6.30.0170.07020.59
5.6.20.0070.07320.46
5.6.10.0000.08720.55
5.6.00.0030.07020.69
5.5.380.0100.04720.63
5.5.370.0070.07720.51
5.5.360.0230.07020.55
5.5.350.0100.08320.62
5.5.340.0170.07021.00
5.5.330.0100.08320.98
5.5.320.0130.08021.12
5.5.310.0170.03720.81
5.5.300.0130.08321.08
5.5.290.0200.07320.95
5.5.280.0100.04020.95
5.5.270.0130.07721.05
5.5.260.0070.08320.93
5.5.250.0170.06720.63
5.5.240.0130.06720.30
5.5.230.0170.07720.29
5.5.220.0030.08320.25
5.5.210.0130.05320.29
5.5.200.0100.07720.26
5.5.190.0030.05320.46
5.5.180.0170.08020.44
5.5.160.0200.04720.26
5.5.150.0000.08720.26
5.5.140.0030.08020.27
5.5.130.0100.07720.29
5.5.120.0130.07320.34
5.5.110.0170.06720.34
5.5.100.0100.07320.32
5.5.90.0130.06720.33
5.5.80.0070.08020.12
5.5.70.0170.04020.20
5.5.60.0100.07720.34
5.5.50.0200.06020.27
5.5.40.0100.07020.27
5.5.30.0030.09020.17
5.5.20.0130.07320.20
5.5.10.0130.05320.14
5.5.00.0130.07320.14
5.4.450.0100.08019.57
5.4.440.0070.06319.62
5.4.430.0130.05319.31
5.4.420.0030.04719.59
5.4.410.0070.08019.46
5.4.400.0070.06019.26
5.4.390.0130.07319.23
5.4.380.0070.06019.23
5.4.370.0000.08319.44
5.4.360.0100.08019.28
5.4.350.0170.08019.29
5.4.340.0170.07018.99
5.4.320.0030.08019.09
5.4.310.0070.07019.29
5.4.300.0030.06319.09
5.4.290.0030.07719.02
5.4.280.0070.06019.26
5.4.270.0300.05019.26
5.4.260.0130.06719.43
5.4.250.0070.04719.18
5.4.240.0170.07019.24
5.4.230.0170.06719.23
5.4.220.0070.08019.22
5.4.210.0130.06719.24
5.4.200.0070.04719.22
5.4.190.0070.07719.24
5.4.180.0000.08019.24
5.4.170.0130.06719.27
5.4.160.0100.07018.95
5.4.150.0130.05319.21
5.4.140.0100.07316.61
5.4.130.0070.03716.62
5.4.120.0130.06716.54
5.4.110.0030.07716.61
5.4.100.0030.07716.70
5.4.90.0030.08016.47
5.4.80.0030.04316.53
5.4.70.0070.07316.42
5.4.60.0030.05716.48
5.4.50.0030.05716.58
5.4.40.0130.07316.64
5.4.30.0200.06016.46
5.4.20.0100.06716.53
5.4.10.0130.07316.56
5.4.00.0130.06715.98
5.3.290.0030.08014.78
5.3.280.0070.07314.77
5.3.270.0130.07014.61
5.3.260.0100.07314.80
5.3.250.0000.06314.71
5.3.240.0100.05714.79
5.3.230.0130.06714.70
5.3.220.0130.06714.75
5.3.210.0130.05314.72
5.3.200.0030.07714.69
5.3.190.0030.05014.70
5.3.180.0100.07014.56
5.3.170.0070.04014.73
5.3.160.0030.05714.73
5.3.150.0030.07714.70
5.3.140.0130.07014.59
5.3.130.0130.07014.55
5.3.120.0100.05714.67
5.3.110.0030.08314.74
5.3.100.0070.07714.23
5.3.90.0130.07014.08
5.3.80.0100.06314.01
5.3.70.0100.07014.01
5.3.60.0170.06714.14
5.3.50.0070.07013.96
5.3.40.0070.05714.05
5.3.30.0070.07714.10
5.3.20.0000.08013.90
5.3.10.0030.07713.82
5.3.00.0070.07313.59
5.2.170.0000.07311.30
5.2.160.0070.06311.41
5.2.150.0000.06711.28
5.2.140.0070.05311.41
5.2.130.0130.05311.31
5.2.120.0130.05311.27
5.2.110.0070.05711.21
5.2.100.0030.06311.27
5.2.90.0070.06311.11
5.2.80.0000.04711.35
5.2.70.0070.03311.17
5.2.60.0030.04311.27
5.2.50.0000.05311.06
5.2.40.0100.05011.24
5.2.30.0070.04711.19
5.2.20.0100.05311.02
5.2.10.0030.06011.11
5.2.00.0070.04010.96
5.1.60.0000.06010.35
5.1.50.0070.04310.35
5.1.40.0000.03710.35
5.1.30.0030.05710.61
5.1.20.0030.05710.41
5.1.10.0000.06010.35
5.1.00.0030.03010.35
5.0.50.0100.03310.35
5.0.40.0030.02310.35
5.0.30.0000.06010.35
5.0.20.0030.04310.35
5.0.10.0070.03310.35
5.0.00.0000.04010.35
4.4.90.0030.02010.35
4.4.80.0070.03310.35
4.4.70.0030.03710.35
4.4.60.0030.03310.35
4.4.50.0000.04010.35
4.4.40.0000.04710.35
4.4.30.0030.03010.35
4.4.20.0000.02010.35
4.4.10.0070.03310.35
4.4.00.0030.05310.35
4.3.110.0030.03310.35
4.3.100.0030.03310.35
4.3.90.0000.02710.35
4.3.80.0000.03710.35
4.3.70.0030.03310.35
4.3.60.0000.03710.35
4.3.50.0030.03710.35
4.3.40.0030.03310.35
4.3.30.0030.03710.35
4.3.20.0000.03310.35
4.3.10.0030.03310.35
4.3.00.0070.02310.35

preferences:
45.07 ms | 401 KiB | 5 Q