3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->loadXML( '<foobar><a:foo xmlns:a="urn:a">'. '<b:bar xmlns:b="urn:b"/></a:foo>'. '</foobar>' ); $xpath = new DOMXPath($dom); // disable automatic namespace registration //$xpath->enableRegisterNodeNS = FALSE; $context = $dom->documentElement->firstChild; $xpath->registerNamespace('a', 'urn:b'); var_dump( $xpath->evaluate( 'descendant-or-self::a:*', $context )->item(0)->tagName );

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.00616.88
8.3.50.0080.01022.21
8.3.40.0090.00918.92
8.3.30.0070.00719.47
8.3.20.0000.00920.71
8.3.10.0000.00822.32
8.3.00.0100.00017.50
8.2.180.0130.00318.66
8.2.170.0050.01022.96
8.2.160.0030.01020.75
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0060.00926.16
8.2.120.0040.01222.63
8.2.110.0030.00622.73
8.2.100.0080.00318.22
8.2.90.0060.00319.42
8.2.80.0040.00418.18
8.2.70.0040.00817.88
8.2.60.0030.00518.18
8.2.50.0030.00518.07
8.2.40.0040.00418.66
8.2.30.0040.00418.58
8.2.20.0050.00317.95
8.2.10.0040.00418.45
8.2.00.0000.01018.17
8.1.280.0150.00025.92
8.1.270.0040.00424.08
8.1.260.0070.00726.35
8.1.250.0030.00528.09
8.1.240.0100.00024.29
8.1.230.0060.00619.46
8.1.220.0000.00817.91
8.1.210.0000.00818.77
8.1.200.0030.00617.60
8.1.190.0000.00817.68
8.1.180.0000.01019.13
8.1.170.0000.00818.72
8.1.160.0040.00422.29
8.1.150.0060.00319.00
8.1.140.0000.01017.57
8.1.130.0070.00017.82
8.1.120.0060.00317.72
8.1.110.0080.00017.76
8.1.100.0040.00417.59
8.1.90.0020.00517.70
8.1.80.0000.00717.83
8.1.70.0030.00317.51
8.1.60.0040.00717.92
8.1.50.0040.00417.85
8.1.40.0050.00217.68
8.1.30.0000.00817.89
8.1.20.0080.00018.01
8.1.10.0040.00417.80
8.1.00.0000.00817.83
8.0.300.0000.00721.03
8.0.290.0030.00317.43
8.0.280.0070.00018.67
8.0.270.0040.00417.35
8.0.260.0000.00717.05
8.0.250.0070.00017.07
8.0.240.0070.00017.09
8.0.230.0030.00316.98
8.0.220.0040.00317.00
8.0.210.0000.00717.03
8.0.200.0000.00717.18
8.0.190.0050.00217.29
8.0.180.0060.00317.25
8.0.170.0040.00417.10
8.0.160.0040.00417.16
8.0.150.0050.00317.25
8.0.140.0070.00017.24
8.0.130.0030.00313.50
8.0.120.0040.00417.01
8.0.110.0000.00717.17
8.0.100.0000.00717.15
8.0.90.0040.00417.22
8.0.80.0030.01617.21
8.0.70.0050.00217.15
8.0.60.0040.00417.29
8.0.50.0000.00717.11
8.0.30.0110.01117.19
8.0.20.0050.01317.46
8.0.10.0070.00017.25
8.0.00.0110.00916.92
7.4.330.0020.00215.36
7.4.320.0070.00016.93
7.4.300.0070.00016.91
7.4.290.0040.00417.00
7.4.280.0000.00916.89
7.4.270.0040.00416.82
7.4.260.0000.00816.95
7.4.250.0040.00416.75
7.4.240.0040.00416.91
7.4.230.0000.00716.86
7.4.220.0070.01716.98
7.4.210.0070.00816.88
7.4.200.0050.00317.06
7.4.190.0000.00716.93
7.4.160.0100.00716.79
7.4.150.0050.01317.40
7.4.140.0050.01517.86
7.4.130.0020.01416.77
7.4.120.0060.01116.71
7.4.110.0070.01416.74
7.4.100.0120.00616.84
7.4.90.0130.00416.88
7.4.80.0050.01419.39
7.4.70.0070.01016.78
7.4.60.0090.00916.80
7.4.50.0030.00616.63
7.4.40.0060.01022.77
7.4.30.0040.01216.54
7.4.00.0110.00415.15
7.3.330.0000.00513.43
7.3.320.0030.00313.39
7.3.310.0080.00016.60
7.3.300.0000.00716.43
7.3.290.0040.01116.57
7.3.280.0130.00616.50
7.3.270.0120.00617.40
7.3.260.0160.00916.57
7.3.250.0090.01016.71
7.3.240.0030.01316.89
7.3.230.0070.01316.54
7.3.210.0070.01016.52
7.3.200.0140.01119.39
7.3.190.0060.01216.93
7.3.180.0100.00716.64
7.3.170.0130.00316.64
7.3.160.0100.00716.46
7.3.120.0040.01214.98
7.3.10.0040.00816.87
7.3.00.0060.00616.80
7.2.330.0090.00916.94
7.2.320.0030.01516.81
7.2.310.0060.01017.05
7.2.300.0160.00317.04
7.2.290.0100.00717.02
7.2.130.0000.01317.18
7.2.120.0000.00917.03
7.2.110.0030.01217.03
7.2.100.0040.00717.09
7.2.90.0070.01016.90
7.2.80.0070.00716.87
7.2.70.0130.00316.85
7.2.60.0070.00716.80
7.2.50.0110.00417.20
7.2.40.0090.00617.12
7.2.30.0070.01017.14
7.2.20.0070.00716.92
7.2.10.0030.00817.13
7.2.00.0080.00818.08
7.1.250.0060.00616.08
7.1.200.0080.00815.88
7.1.100.0070.00318.48
7.1.70.0040.01117.39
7.1.60.0030.01019.46
7.1.50.0090.00617.05
7.1.00.0000.08022.64
7.0.200.0070.00016.98
7.0.140.0070.07022.15
7.0.60.0070.03720.18
7.0.50.0030.07018.07
7.0.40.0070.08720.47
7.0.30.0230.04720.40
7.0.20.0300.05320.18
7.0.10.0070.04320.20
7.0.00.0030.04320.40
5.6.210.0030.03720.71
5.6.200.0100.07718.35
5.6.190.0070.05720.84
5.6.180.0400.04720.63
5.6.170.0300.06320.59
5.6.160.0070.04320.73
5.6.150.0000.07018.28
5.6.140.0100.03718.32
5.6.130.0030.04018.38
5.6.120.0130.06021.25
5.6.110.0170.07021.14
5.6.100.0070.05321.18
5.6.90.0030.05021.14
5.6.80.0070.08020.58
5.6.70.3700.03020.63
5.5.350.0030.05320.60
5.5.340.0100.07718.16
5.5.330.0170.05320.33
5.5.320.0170.07720.50
5.5.310.0300.07020.55
5.5.300.0030.08318.05
5.5.290.0030.07718.15
5.5.280.0030.06020.91
5.5.270.0130.07020.96
5.5.260.0070.08020.79
5.5.250.0070.05320.63
5.5.240.0230.07020.54
5.4.450.0730.05319.69
5.4.440.0400.06019.61
5.4.430.0730.05019.69
5.4.420.0870.07319.75
5.4.410.0670.07019.23
5.4.400.0800.07719.30
5.4.390.0930.07319.43
5.4.380.0270.05018.89
5.4.370.0370.05318.68
5.4.360.0470.05018.89
5.4.350.0400.05318.68
5.4.340.0400.05018.86
5.4.320.0070.04412.71
5.4.310.0100.04212.70
5.4.300.0080.03512.71
5.4.290.0100.04912.70
5.4.280.0080.06412.59
5.4.270.0160.10712.59
5.4.260.0190.09112.59
5.4.250.0150.05412.59
5.4.240.0130.05912.59
5.4.230.0290.11012.59
5.4.220.0180.05912.58
5.4.210.0140.07212.58
5.4.200.0180.05712.59
5.4.190.0180.06012.58
5.4.180.0210.08812.58
5.4.170.0120.05712.59
5.4.160.0070.04312.59
5.4.150.0190.10412.59
5.4.140.0070.05512.27
5.4.130.0480.12812.26
5.4.120.0320.08012.21
5.4.110.0110.04712.22
5.4.100.0070.04212.21
5.4.90.0090.04112.21
5.4.80.0100.05112.21
5.4.70.0140.03912.21
5.4.60.0130.05512.21
5.4.50.0140.07812.21
5.4.40.0090.06412.20
5.4.30.0140.08212.20
5.4.20.0090.06012.20
5.4.10.0230.08012.20
5.4.00.0080.06111.68
5.3.290.0060.04212.96
5.3.280.0150.05212.89
5.3.270.0230.09412.90
5.3.260.0150.10512.91
5.3.250.0120.09712.91
5.3.240.0110.06212.91
5.3.230.0170.09112.91
5.3.220.0180.09112.87
5.3.210.0120.06612.88
5.3.200.0190.05712.87
5.3.190.0090.04612.88
5.3.180.0080.04112.87
5.3.170.0100.03912.87
5.3.160.0090.04012.87
5.3.150.0200.07112.87
5.3.140.0130.05212.86
5.3.130.0170.05912.86
5.3.120.0090.05712.86
5.3.110.0070.08112.85
5.3.100.0100.06912.33
5.3.90.0100.05012.32
5.3.80.0060.05812.31
5.3.70.0080.04712.31
5.3.60.0070.04112.30
5.3.50.0080.04012.23
5.3.40.0090.03712.25
5.3.30.0070.04112.21
5.3.20.0140.03411.98
5.3.10.0160.06411.95
5.3.00.0120.03811.93
5.2.170.0120.0789.43
5.2.160.0140.0569.44
5.2.150.0080.0749.43
5.2.140.0100.0649.43
5.2.130.0100.0509.39
5.2.120.0110.0529.39
5.2.110.0100.0919.40
5.2.100.0110.0539.39
5.2.90.0250.0929.39
5.2.80.0080.0509.39
5.2.70.0190.0539.39
5.2.60.0070.0459.34
5.2.50.0110.0609.31
5.2.40.0100.0539.29
5.2.30.0060.0359.26
5.2.20.0090.0339.25
5.2.10.0360.0529.17
5.2.00.0100.0649.03
5.1.60.0090.0378.32
5.1.50.0100.0378.32
5.1.40.0140.0358.30
5.1.30.0120.0418.64
5.1.20.0110.0438.66
5.1.10.0080.0408.39
5.1.00.0100.0528.39
5.0.50.0160.0396.81
5.0.40.0170.0516.68
5.0.30.0240.0636.49
5.0.20.0100.0246.46
5.0.10.0050.0356.44
5.0.00.0080.0446.43
4.4.90.0080.0444.78
4.4.80.0100.0344.75
4.4.70.0040.0274.76
4.4.60.0060.0254.76
4.4.50.0100.0274.77
4.4.40.0050.0424.71
4.4.30.0060.0254.76
4.4.20.0030.0294.84
4.4.10.0050.0264.85
4.4.00.0030.0394.76
4.3.110.0040.0264.67
4.3.100.0100.0374.66
4.3.90.0050.0244.64
4.3.80.0110.0444.58
4.3.70.0140.0384.63
4.3.60.0050.0354.63
4.3.50.0080.0394.63
4.3.40.0060.0464.54
4.3.30.0020.0333.29
4.3.20.0050.0273.26
4.3.10.0020.0283.22
4.3.00.0030.01313.47

preferences:
39.48 ms | 401 KiB | 5 Q