3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create a DOM object from a string $html = str_get_html('<html><body>Hello!</body></html>'); // Create a DOM object from a URL $html = file_get_html('http://www.google.com/'); // Create a DOM object from a HTML file $html = file_get_html('test.htm');

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.0040.01116.63
8.3.50.0090.00618.17
8.3.40.0100.00718.71
8.3.30.0110.00418.71
8.3.20.0040.00420.21
8.3.10.0050.00323.51
8.3.00.0050.00319.39
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0100.00720.53
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00317.36
8.2.110.0060.00320.39
8.2.100.0000.01117.93
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0050.00517.63
8.2.60.0100.00317.43
8.2.50.0060.00318.07
8.2.40.0050.00319.52
8.2.30.0000.00720.52
8.2.20.0000.00817.70
8.2.10.0040.00417.93
8.2.00.0070.00017.92
8.1.280.0090.01225.92
8.1.270.0040.00423.64
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0080.00317.53
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0060.00317.23
8.1.180.0050.00218.10
8.1.170.0040.00418.52
8.1.160.0030.00521.84
8.1.150.0040.00418.71
8.1.140.0040.00419.44
8.1.130.0000.00717.55
8.1.120.0040.00417.21
8.1.110.0040.00417.27
8.1.100.0000.00717.37
8.1.90.0000.00717.25
8.1.80.0030.00417.16
8.1.70.0050.00217.21
8.1.60.0050.00317.45
8.1.50.0090.00017.46
8.1.40.0040.00417.36
8.1.30.0030.00517.58
8.1.20.0000.00817.59
8.1.10.0000.00717.41
8.1.00.0110.00417.27
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0040.00418.31
8.0.270.0050.00217.23
8.0.260.0000.00617.14
8.0.250.0000.00716.93
8.0.240.0000.00616.90
8.0.230.0000.00716.88
8.0.220.0000.00816.89
8.0.210.0070.00016.81
8.0.200.0030.00316.83
8.0.190.0070.00016.82
8.0.180.0040.00416.91
8.0.170.0000.00816.80
8.0.160.0040.00416.80
8.0.150.0030.00316.73
8.0.140.0030.00416.88
8.0.130.0030.00313.31
8.0.120.0060.00316.80
8.0.110.0040.00416.83
8.0.100.0030.00516.87
8.0.90.0070.00016.93
8.0.80.0120.00316.80
8.0.70.0030.00516.75
8.0.60.0040.00416.71
8.0.50.0050.00316.94
8.0.30.0080.00816.94
8.0.20.0100.00817.40
8.0.10.0040.00417.00
8.0.00.0090.01116.69
7.4.330.0050.00015.08
7.4.320.0030.00316.45
7.4.300.0000.00716.55
7.4.290.0030.00316.50
7.4.280.0080.00016.32
7.4.270.0040.00416.46
7.4.260.0030.00316.46
7.4.250.0000.00816.45
7.4.240.0020.00616.46
7.4.230.0000.00716.43
7.4.220.0060.01216.55
7.4.210.0090.00916.55
7.4.200.0000.00816.63
7.4.160.0130.00316.28
7.4.150.0130.00417.40
7.4.140.0190.01317.86
7.4.130.0050.01416.36
7.4.120.0110.00716.46
7.4.110.0130.01316.59
7.4.100.0130.01016.41
7.4.90.0100.00716.30
7.4.80.0090.00819.39
7.4.70.0140.00316.30
7.4.60.0040.01416.59
7.4.50.0030.00616.36
7.4.40.0170.00916.41
7.4.30.0100.00716.36
7.4.00.0060.01114.80
7.3.330.0060.00013.16
7.3.320.0000.00613.24
7.3.310.0070.00016.30
7.3.300.0000.00716.21
7.3.290.0090.00816.27
7.3.280.0140.00516.26
7.3.270.0110.00717.40
7.3.260.0140.00316.29
7.3.250.0070.01216.19
7.3.240.0070.01216.35
7.3.230.0220.00016.39
7.3.210.0110.00716.29
7.3.200.0060.01016.28
7.3.190.0090.00916.40
7.3.180.0100.00616.55
7.3.170.0060.00916.27
7.3.160.0110.00416.36
7.3.120.0100.00714.75
7.3.110.0030.01514.44
7.3.100.0120.00314.64
7.3.90.0070.00414.91
7.3.80.0150.00014.93
7.3.70.0070.00714.56
7.3.60.0100.00714.94
7.3.50.0030.00914.78
7.3.40.0040.00414.66
7.3.30.0030.01014.38
7.3.20.0060.00916.68
7.3.10.0110.00516.63
7.3.00.0020.01116.65
7.2.330.0030.01716.48
7.2.320.0060.01216.52
7.2.310.0120.00616.37
7.2.300.0060.01216.38
7.2.290.0040.01216.31
7.2.250.0090.00915.02
7.2.240.0100.00314.63
7.2.230.0150.00314.87
7.2.220.0060.00614.97
7.2.210.0090.00615.05
7.2.200.0060.00614.77
7.2.190.0080.00814.82
7.2.180.0060.00914.89
7.2.170.0000.01114.70
7.2.130.0060.00616.82
7.2.120.0090.00616.57
7.2.110.0040.01116.75
7.2.100.0030.01016.66
7.2.90.0030.01016.74
7.2.80.0070.00316.90
7.2.70.0130.00316.84
7.2.60.0020.01116.84
7.2.50.0040.00816.80
7.2.40.0060.01016.77
7.2.30.0090.00316.86
7.2.20.0070.00716.89
7.2.10.0060.00616.52
7.2.00.0100.01017.96
7.1.330.0030.01015.52
7.1.320.0070.00715.45
7.1.310.0070.00715.79
7.1.300.0060.01015.65
7.1.290.0080.00015.39
7.1.280.0000.01215.32
7.1.270.0060.00615.37
7.1.260.0060.00615.59
7.1.250.0030.01315.72
7.1.200.0060.00315.50
7.1.100.0080.00817.77
7.1.70.0090.00616.74
7.1.60.0120.01219.43
7.1.50.0040.01516.53
7.1.00.0130.06722.51
7.0.200.0250.00614.65
7.0.60.0100.08319.94
7.0.50.0030.05717.80
7.0.40.0100.06320.07
7.0.30.0230.04320.13
7.0.20.0330.03720.21
7.0.10.0100.08320.22
7.0.00.0100.08320.09
5.6.280.0000.03321.04
5.6.210.0100.08320.68
5.6.200.0070.08318.07
5.6.190.0030.05020.39
5.6.180.0270.07320.48
5.6.170.0200.03720.48
5.6.160.0070.06720.54
5.6.150.0100.07018.16
5.6.140.0070.03318.15
5.6.130.0030.04318.16
5.6.120.0070.08320.98
5.6.110.0130.07720.97
5.6.100.0170.07720.98
5.6.90.0170.07020.88
5.6.80.0030.07720.47
5.5.350.0330.06720.35
5.5.340.0100.07317.92
5.5.330.0030.09020.40
5.5.320.0200.04020.24
5.5.310.0370.06720.26
5.5.300.0130.07318.00
5.5.290.0070.07717.95
5.5.280.0070.06320.68
5.5.270.0100.03720.96
5.5.260.0030.08320.78
5.5.250.0070.08020.57
5.5.240.0170.07320.34
5.4.450.0570.05019.36
5.4.440.0630.04719.53
5.4.430.0600.05019.52
5.4.420.0600.05319.48
5.4.410.0530.05719.31
5.4.400.0530.04718.95
5.4.390.0530.06019.16
5.4.380.0700.06719.12
5.4.370.0570.06019.19
5.4.360.0630.04719.21
5.4.350.0500.05319.20
5.4.340.0400.06019.02
5.4.320.0500.05319.11
5.4.310.0630.06018.75
5.4.300.0530.05019.13
5.4.290.0600.04719.16
5.4.280.0530.05319.22
5.4.270.0630.04319.19
5.4.260.0430.05319.02
5.4.250.0570.06718.77
5.4.240.0570.05019.10
5.4.230.0470.06019.10
5.4.220.0530.05719.07
5.4.210.0570.04718.94
5.4.200.0800.04319.11
5.4.190.0530.05319.01
5.4.180.0670.04319.16
5.4.170.0500.05018.88
5.4.160.0430.05319.09
5.4.150.0530.04719.16
5.4.140.0430.05316.20
5.4.130.0530.05316.20
5.4.120.0600.04316.24
5.4.110.0530.07016.45
5.4.100.0630.04016.50
5.4.90.0570.04316.46
5.4.80.0600.04016.26
5.4.70.0500.05316.43
5.4.60.0500.04716.36
5.4.50.0430.05016.39
5.4.40.0430.05016.34
5.4.30.0430.05016.29
5.4.20.0400.05316.42
5.4.10.0470.05016.34
5.4.00.0500.04315.90

preferences:
56.26 ms | 400 KiB | 5 Q