3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = ' <html> <head> <title>DOMDocument test-case</title> </head> <body> <div class="dummy-container"> <h1 _ngcontent-c0="" class="br-hdng"><span _ngcontent-c0="" class="pr dib">hair fall shamboo<!----></span></h1> </div> </body>'; $dom = new DOMDocument; $oldSetting = libxml_use_internal_errors(true); $dom->loadHTML( $html ); libxml_use_internal_errors($oldSetting); $xpath = new DOMXPath( $dom ); $title = $xpath->query( '//h1[@class="br-hdng"]/span' )->item( 0 )->nodeValue; echo $title;

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.4.10.0030.00718.00
8.3.140.0040.00417.62
8.3.130.0110.00718.80
8.3.120.0070.00319.15
8.3.110.0060.00320.94
8.3.100.0060.00317.04
8.3.90.0060.00326.77
8.3.80.0070.00319.36
8.3.70.0040.01118.56
8.3.60.0060.00918.68
8.3.50.0080.00617.50
8.3.40.0090.01619.04
8.3.30.0110.00418.96
8.3.20.0050.00319.00
8.3.10.0030.00522.29
8.3.00.0040.00423.91
8.2.260.0120.00617.59
8.2.250.0140.00018.72
8.2.240.0060.00317.52
8.2.230.0080.00822.58
8.2.220.0060.01237.54
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0110.00716.88
8.2.180.0100.00718.79
8.2.170.0090.00619.20
8.2.160.0100.00322.96
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0040.00420.27
8.2.110.0060.00322.76
8.2.100.0080.00418.28
8.2.90.0040.00418.28
8.2.80.0000.00818.29
8.2.70.0030.00618.30
8.2.60.0040.00418.28
8.2.50.0000.00818.10
8.2.40.0000.00819.47
8.2.30.0040.00420.90
8.2.20.0000.00818.41
8.2.10.0000.00818.58
8.2.00.0030.00518.41
8.1.310.0000.01718.89
8.1.300.0130.00318.17
8.1.290.0120.00630.84
8.1.280.0080.00825.92
8.1.270.0060.00322.24
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0070.00419.65
8.1.230.0070.00422.91
8.1.220.0030.00618.04
8.1.210.0000.00818.97
8.1.200.0030.00617.48
8.1.190.0040.00417.63
8.1.180.0120.00018.10
8.1.170.0040.00418.91
8.1.160.0080.00019.11
8.1.150.0000.00819.16
8.1.140.0030.00520.84
8.1.130.0000.00820.53
8.1.120.0040.00417.66
8.1.110.0000.00817.71
8.1.100.0000.00717.64
8.1.90.0040.00317.73
8.1.80.0040.00417.64
8.1.70.0000.00717.76
8.1.60.0050.00317.82
8.1.50.0040.00417.71
8.1.40.0140.00317.72
8.1.30.0120.00617.84
8.1.20.0140.00317.79
8.1.10.0110.00617.87
8.1.00.0080.00817.75
8.0.300.0070.00019.89
8.0.290.0030.00617.00
8.0.280.0030.00318.75
8.0.270.0070.00017.49
8.0.260.0000.00722.40
8.0.250.0000.00717.20
8.0.240.0060.00317.32
8.0.230.0040.00417.09
8.0.220.0040.00417.08
8.0.210.0030.00317.09
8.0.200.0030.00317.14
8.0.190.0000.00817.15
8.0.180.0030.00517.20
8.0.170.0040.01117.04
8.0.160.0100.00517.03
8.0.150.0100.00617.00
8.0.140.0080.00517.08
8.0.130.0090.00415.96
8.0.120.0090.00517.12
8.0.110.0000.01017.02
8.0.100.0070.00717.03
8.0.90.0080.00516.98
8.0.80.0040.01016.96
8.0.70.0050.00617.05
8.0.60.0040.00717.09
8.0.50.0060.00517.05
8.0.30.0070.00917.18
8.0.20.0050.01017.28
8.0.10.0080.00417.24
8.0.00.0100.00617.14
7.4.330.0000.00715.55
7.4.320.0030.00316.91
7.4.300.0030.00316.78
7.4.290.0040.00416.68
7.4.280.0070.00716.83
7.4.270.0110.00116.85
7.4.260.0040.00916.70
7.4.250.0080.00416.80
7.4.240.0090.00316.78
7.4.230.0060.00416.77
7.4.220.0090.00416.78
7.4.210.0100.00516.92
7.4.200.0090.00316.80
7.4.190.0110.00416.93
7.4.180.0120.00316.83
7.4.160.0080.00816.83
7.4.150.0110.00516.73
7.4.140.0080.01217.44
7.4.130.0100.01016.64
7.4.120.0080.01116.74
7.4.110.0120.00616.86
7.4.100.0100.00916.81
7.4.90.0110.00916.67
7.4.80.0150.00317.56
7.4.70.0120.00516.73
7.4.60.0110.00716.67
7.4.50.0110.00516.66
7.4.40.0130.00316.69
7.4.30.0140.00316.71
7.4.20.0120.00416.64
7.4.10.0110.00716.66
7.4.00.0090.00715.84
7.3.330.0100.00515.40
7.3.320.0120.00415.42
7.3.310.0100.00616.51
7.3.300.0120.00516.47
7.3.290.0110.00516.56
7.3.280.0110.00716.54
7.3.270.0180.00216.50
7.3.260.0120.00916.60
7.3.250.0160.00616.62
7.3.240.0100.00816.58
7.3.230.0130.00616.54
7.3.220.0150.00616.50
7.3.210.0160.00416.58
7.3.200.0150.00816.54
7.3.190.0180.00316.64
7.3.180.0150.00516.64
7.3.170.0130.00616.64
7.3.160.0140.01016.57
7.3.150.0150.00616.59
7.3.140.0200.00116.50
7.3.130.0170.00316.57
7.3.120.0150.00416.00
7.3.110.0130.00815.83
7.3.100.0130.00515.85
7.3.90.0140.00516.10
7.3.80.0110.00715.75
7.3.70.0140.00416.07
7.3.60.0140.00416.01
7.3.50.0120.00616.11
7.3.40.0100.00716.10
7.3.30.0110.00716.06
7.3.20.0150.00317.87
7.3.10.0110.00817.79
7.3.00.0130.00817.88
7.2.340.0140.00716.63
7.2.330.0170.00416.68
7.2.320.0160.00316.55
7.2.310.0130.00616.63
7.2.300.0180.00316.78
7.2.290.0150.00416.72
7.2.280.0120.00816.64
7.2.270.0120.00816.46
7.2.260.0150.00616.46
7.2.250.0150.00416.01
7.2.240.0130.00716.06
7.2.230.0140.00515.99
7.2.220.0130.00516.13
7.2.210.0150.00316.07
7.2.200.0150.00616.07
7.2.190.0140.00616.21
7.2.180.0160.00316.17
7.2.170.0130.00716.13
7.2.160.0160.00716.65
7.2.150.0180.00618.49
7.2.140.0170.00618.54
7.2.130.0230.00218.80
7.2.120.0170.00618.60
7.2.110.0200.00218.60
7.2.100.0610.00617.40
7.2.90.0600.01017.38
7.2.80.0640.00417.43
7.2.70.0680.00617.46
7.2.60.0740.00517.33
7.2.50.0740.00517.40
7.2.40.0690.00717.42
7.2.30.0850.00817.52
7.2.20.0790.00517.44
7.2.10.0210.00817.58
7.2.00.0820.00917.61
7.1.330.0120.00717.04
7.1.320.0130.00517.09
7.1.310.0120.00717.03
7.1.300.0130.00716.97
7.1.290.0110.00517.04
7.1.280.0130.00317.16
7.1.270.0130.00717.01
7.1.260.0140.00517.06
7.1.250.0150.00617.44
7.1.240.0130.00817.48
7.1.230.0160.00517.59
7.1.220.0670.00516.46
7.1.210.0690.00616.48
7.1.200.0600.00616.37
7.1.190.0530.00516.45
7.1.180.0380.00616.30
7.1.170.0370.00716.42
7.1.160.0740.00616.28
7.1.150.0950.00516.24
7.1.140.0890.00516.33
7.1.130.0550.00616.47
7.1.120.0960.00716.36
7.1.110.0260.00616.45
7.1.100.0960.00616.44
7.1.90.0830.00416.32
7.1.80.0590.00516.41
7.1.70.1490.00316.27
7.1.60.1500.00522.46
7.1.50.0400.00822.42
7.1.40.1110.00322.38
7.1.30.0850.00722.36
7.1.20.1320.00522.39
7.1.10.1190.00816.33
7.1.00.0790.00816.38
7.0.330.0150.00517.27
7.0.320.0160.00317.31
7.0.310.0180.00217.36
7.0.300.0160.00317.21
7.0.290.0150.00517.24
7.0.280.0150.00417.31
7.0.270.0190.00117.24
7.0.260.0160.00317.19
7.0.250.0150.00517.41
7.0.240.0150.00417.21
7.0.230.0150.00517.47
7.0.220.0170.00117.35
7.0.210.0170.00317.40
7.0.200.0180.00117.34
7.0.190.0180.00217.34
7.0.180.0160.00317.14
7.0.170.0150.00517.43
7.0.160.0130.00717.30
7.0.150.0140.00617.29
7.0.140.0140.00517.24
7.0.130.0170.00317.37
7.0.120.0160.00417.36
7.0.110.0130.00617.29
7.0.100.0130.00617.34
7.0.90.0140.00617.17
7.0.80.0180.00717.17
7.0.70.0180.00417.19
7.0.60.0130.00617.23
7.0.50.0170.00217.14
7.0.40.0110.00817.42
7.0.30.0160.00317.35
7.0.20.0160.00417.29
7.0.10.0140.00517.20
7.0.00.0150.00317.35
5.6.400.0130.00615.89
5.6.390.0150.00416.08
5.6.380.0100.00715.45
5.6.370.0120.00715.95
5.6.360.0120.00616.15
5.6.350.0150.00416.00
5.6.340.0170.00215.97
5.6.330.0140.00416.06
5.6.320.0130.00515.89
5.6.310.0160.00216.02
5.6.300.0140.00415.90
5.6.290.0170.00116.12
5.6.280.0140.00516.06
5.6.270.0140.00416.12
5.6.260.0140.00416.12
5.6.250.0130.00516.06
5.6.240.0120.00716.06
5.6.230.0160.00316.14
5.6.220.0120.00716.08
5.6.210.0130.00516.09
5.6.200.0160.00316.13
5.6.190.0150.00516.09
5.6.180.0130.00516.08
5.6.170.0140.00516.28
5.6.160.0120.00616.29
5.6.150.0120.00716.07
5.6.140.0170.00216.02
5.6.130.0150.00416.02
5.6.120.0120.00516.12
5.6.110.0110.00816.06
5.6.100.0150.00416.16
5.6.90.0180.00216.13
5.6.80.0100.00816.02
5.6.70.0140.00416.11
5.6.60.0120.00616.26
5.6.50.0100.00815.98
5.6.40.0150.00316.01
5.6.30.0130.00516.04
5.6.20.0110.00615.83
5.6.10.0150.00315.75
5.6.00.0130.00516.02

preferences:
67.25 ms | 403 KiB | 5 Q