3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locator = 'and position()=1]'; libxml_use_internal_errors(true); libxml_suppress_errors(true); $document = new \DOMDocument('1.0', 'UTF-8'); $xpath = new \DOMXPath($document); var_dump( $xpath->evaluate($locator, $document) );

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.0120.00316.50
8.3.50.0080.00816.37
8.3.40.0070.00718.94
8.3.30.0110.00418.84
8.3.20.0040.00421.77
8.3.10.0080.00020.36
8.3.00.0040.00423.39
8.2.180.0180.00318.50
8.2.170.0070.00722.96
8.2.160.0070.00719.29
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0060.00321.04
8.2.100.0070.00417.91
8.2.90.0030.00517.84
8.2.80.0060.00319.28
8.2.70.0000.00817.93
8.2.60.0040.00417.25
8.2.50.0040.00418.10
8.2.40.0040.00422.32
8.2.30.0070.00019.05
8.2.20.0000.00717.86
8.2.10.0050.00217.96
8.2.00.0090.00017.80
8.1.280.0060.00925.92
8.1.270.0130.00020.27
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0100.00019.03
8.1.230.0030.00720.90
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0080.00017.35
8.1.190.0080.00017.10
8.1.180.0000.00818.10
8.1.170.0000.00818.48
8.1.160.0070.00022.14
8.1.150.0040.00418.68
8.1.140.0040.00419.51
8.1.130.0000.00717.60
8.1.120.0030.00317.29
8.1.110.0040.00417.42
8.1.100.0050.00217.42
8.1.90.0030.00517.39
8.1.80.0030.00317.28
8.1.70.0080.00017.40
8.1.60.0050.00317.48
8.1.50.0040.00417.39
8.1.40.0030.00517.54
8.1.30.0090.00017.57
8.1.20.0080.00017.61
8.1.10.0040.00417.57
8.1.00.0040.00417.41
8.0.300.0000.00719.98
8.0.290.0040.00416.75
8.0.280.0070.00018.42
8.0.270.0060.00316.74
8.0.260.0060.00017.25
8.0.250.0070.00016.84
8.0.240.0030.00316.86
8.0.230.0030.00316.99
8.0.220.0030.00316.78
8.0.210.0040.00416.77
8.0.200.0000.00616.95
8.0.190.0080.00016.89
8.0.180.0070.00016.94
8.0.170.0000.00816.93
8.0.160.0030.00416.72
8.0.150.0000.00716.79
8.0.140.0040.00416.75
8.0.130.0000.00613.34
8.0.120.0020.00516.75
8.0.110.0000.00716.76
8.0.100.0000.00716.80
8.0.90.0000.00716.87
8.0.80.0120.00316.91
8.0.70.0090.00016.76
8.0.60.0030.00316.89
8.0.50.0050.00216.72
8.0.30.0140.00716.92
8.0.20.0060.01217.40
8.0.10.0050.00316.79
8.0.00.0040.01316.77
7.4.330.0020.00215.21
7.4.320.0000.00616.36
7.4.300.0070.00016.60
7.4.290.0030.00316.45
7.4.280.0000.00816.46
7.4.270.0030.00316.52
7.4.260.0000.00716.58
7.4.250.0040.00416.56
7.4.240.0000.00716.59
7.4.230.0030.00316.50
7.4.220.0120.01216.56
7.4.210.0070.01316.52
7.4.200.0070.00016.58
7.4.160.0070.00816.50
7.4.150.0000.01717.40
7.4.140.0120.01117.86
7.4.130.0110.00616.57
7.4.120.0100.00816.51
7.4.110.0150.00316.50
7.4.100.0100.01016.64
7.4.90.0120.00816.44
7.4.80.0040.01419.39
7.4.70.0160.00016.63
7.4.60.0100.00616.60
7.4.50.0030.00616.33
7.4.40.0040.01716.34
7.4.30.0070.01016.64
7.4.00.0050.01014.83
7.3.330.0000.00613.06
7.3.320.0050.00013.02
7.3.310.0070.00016.11
7.3.300.0000.00716.25
7.3.290.0060.01016.29
7.3.280.0090.01016.25
7.3.270.0030.01317.40
7.3.260.0090.00716.48
7.3.250.0110.00716.27
7.3.240.0120.00516.31
7.3.230.0110.00616.39
7.3.210.0140.00616.29
7.3.200.0070.01016.34
7.3.190.0070.01316.24
7.3.180.0120.00416.25
7.3.170.0100.00816.56
7.3.160.0140.00416.23
7.3.120.0090.00915.05
7.3.110.0030.01314.38
7.3.100.0030.01314.59
7.3.90.0110.00314.42
7.3.80.0000.01214.69
7.3.70.0070.00414.52
7.3.60.0070.01014.66
7.3.50.0070.00714.79
7.3.40.0030.00914.94
7.3.30.0000.00914.95
7.3.20.0070.00716.40
7.3.10.0090.00616.64
7.3.00.0030.00716.62
7.2.330.0100.00716.57
7.2.320.0140.00716.51
7.2.310.0090.00916.44
7.2.300.0070.01116.68
7.2.290.0100.00716.60
7.2.250.0040.01215.05
7.2.240.0090.01214.75
7.2.230.0030.01515.11
7.2.220.0070.00714.89
7.2.210.0030.01314.93
7.2.200.0030.01314.84
7.2.190.0060.01014.91
7.2.180.0110.00314.85
7.2.170.0060.00914.74
7.2.60.0090.00616.77
7.2.00.0030.01019.28
7.1.330.0030.01315.63
7.1.320.0030.00715.33
7.1.310.0040.01115.58
7.1.300.0110.00415.70
7.1.290.0030.01015.41
7.1.280.0070.00715.48
7.1.270.0070.00715.73
7.1.260.0060.00915.76
7.1.200.0260.00715.43
7.1.100.0000.01218.22
7.1.70.0000.01016.81
7.1.60.0040.00817.27
7.1.50.0100.01016.88
7.1.00.0030.07722.32
7.0.200.0370.00314.57
7.0.110.0370.06720.22
7.0.100.0430.07020.37
7.0.90.0170.07020.27
7.0.80.0270.06720.37
7.0.70.0400.05320.34
7.0.60.0330.06020.35
7.0.50.0370.06320.20
7.0.40.0370.05320.23
7.0.30.0300.07020.28
7.0.20.0370.06020.21
7.0.10.0330.06020.30
7.0.00.0300.06320.34
5.6.260.0170.05021.12
5.6.250.0100.06020.96
5.6.240.0070.06021.10
5.6.230.0130.06021.05
5.6.220.0170.05321.08
5.6.210.0170.05320.88
5.6.200.0130.06020.84
5.6.190.0100.06020.84
5.6.180.0170.05321.04
5.6.170.0070.06320.80
5.6.160.0100.06020.94
5.6.150.0170.05720.98
5.6.140.0230.06721.03
5.6.130.0100.05720.92
5.6.120.0030.06721.02
5.6.110.0170.05720.85
5.6.100.0100.06320.90
5.6.90.0170.05020.82
5.6.80.0100.05320.18
5.6.70.0200.04720.20
5.6.60.0070.05720.20
5.6.50.0000.07320.30
5.6.40.0100.06320.30
5.6.30.0130.05320.34
5.6.20.0100.05720.43
5.6.10.0130.05020.43
5.6.00.0030.05720.14

preferences:
60.85 ms | 401 KiB | 5 Q