3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); ?> <div> <h1>Example Domain</h1> <p>This domain is established to be used for illustrative examples in documents. You may use this domain in examples without prior coordination or asking for permission.</p> <p><a href="http://www.iana.org/domains/example">More information...</a></p> </div> <?php $c = ob_get_clean(); if( ! class_exists('DOMDocument') ) exit("DOMDocument not here"); $doc = new DOMDocument(); $doc->loadHTML("<html><body>Test<br></body></html>"); print_r( $doc->childNodes->item(0)->nodeValue ); echo PHP_EOL.PHP_EOL; $doc->loadHTML($c); print_r( $doc->childNodes->item(0)->nodeValue );

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.61
8.3.50.0120.00318.41
8.3.40.0090.00619.01
8.3.30.0140.00018.97
8.3.20.0000.00722.11
8.3.10.0050.00322.11
8.3.00.0080.00022.06
8.2.180.0150.00316.75
8.2.170.0120.00322.96
8.2.160.0070.00722.43
8.2.150.0000.00924.18
8.2.140.0030.00524.66
8.2.130.0000.00821.37
8.2.120.0050.00326.35
8.2.110.0070.00320.79
8.2.100.0080.00417.97
8.2.90.0040.00419.30
8.2.80.0050.00317.97
8.2.70.0040.00418.02
8.2.60.0080.00018.05
8.2.50.0110.00018.28
8.2.40.0080.00020.71
8.2.30.0040.00419.78
8.2.20.0040.00418.20
8.2.10.0040.00418.25
8.2.00.0040.00418.31
8.1.280.0070.01025.92
8.1.270.0030.00524.09
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0060.00322.67
8.1.230.0040.00818.01
8.1.220.0030.00517.90
8.1.210.0000.00918.77
8.1.200.0000.00817.63
8.1.190.0000.00917.60
8.1.180.0000.00818.10
8.1.170.0030.00519.21
8.1.160.0030.00519.01
8.1.150.0050.00219.34
8.1.140.0030.00517.98
8.1.130.0030.00320.52
8.1.120.0070.00017.74
8.1.110.0040.00417.63
8.1.100.0050.00217.71
8.1.90.0040.00417.59
8.1.80.0000.00817.68
8.1.70.0000.00817.71
8.1.60.0000.00817.75
8.1.50.0000.00817.70
8.1.40.0000.00817.79
8.1.30.0060.00517.92
8.1.20.0030.00617.90
8.1.10.0030.00617.82
8.1.00.0090.00017.78
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.63
8.0.270.0000.00717.45
8.0.260.0070.00018.79
8.0.250.0000.00717.20
8.0.240.0030.00317.14
8.0.230.0000.00717.20
8.0.220.0000.00717.17
8.0.210.0050.00317.17
8.0.200.0030.00317.14
8.0.190.0040.00417.21
8.0.180.0050.00317.16
8.0.170.0000.00817.15
8.0.160.0040.00417.22
8.0.150.0070.00017.04
8.0.140.0000.00817.12
8.0.130.0000.00613.54
8.0.120.0080.00017.14
8.0.110.0040.00417.16
8.0.100.0000.00717.17
8.0.90.0050.00317.21
8.0.80.0110.00617.05
8.0.70.0040.00416.93
8.0.60.0000.00717.17
8.0.50.0020.00516.97
8.0.30.0120.00717.46
8.0.20.0190.01417.40
8.0.10.0000.00817.33
8.0.00.0070.01017.14
7.4.330.0020.00215.55
7.4.320.0030.00316.94
7.4.300.0030.00316.67
7.4.290.0070.00016.81
7.4.280.0000.00916.75
7.4.270.0050.00316.66
7.4.260.0030.00616.75
7.4.250.0040.00416.88
7.4.240.0030.00516.77
7.4.230.0030.00316.64
7.4.220.0080.00016.64
7.4.210.0100.00916.78
7.4.200.0040.00416.95
7.4.160.0080.01116.68
7.4.140.0060.01217.86
7.4.130.0100.00816.73
7.4.120.0090.01216.81
7.4.110.0140.00316.59
7.4.100.0100.01016.63
7.4.90.0080.01616.82
7.4.80.0100.01019.39
7.4.70.0110.00616.71
7.4.60.0070.01016.61
7.4.50.0040.01416.99
7.4.40.0120.00616.54
7.4.00.0090.00315.30
7.3.330.0050.00013.07
7.3.320.0000.00513.24
7.3.310.0030.00516.36
7.3.300.0000.00616.21
7.3.290.0030.00316.39
7.3.280.0090.00616.44
7.3.260.0060.01416.53
7.3.240.0110.00716.49
7.3.230.0120.00616.74
7.3.210.0090.00616.79
7.3.200.0040.01616.39
7.3.190.0080.00816.57
7.3.180.0130.00316.45
7.3.170.0060.01516.63
7.3.160.0080.00816.49
7.2.330.0210.00316.87
7.2.320.0130.00316.73
7.2.310.0080.00816.82
7.2.300.0110.00616.72
7.2.290.0090.01016.98
7.2.60.0060.00616.95
7.2.50.0040.01116.75
7.2.40.0060.01317.95
7.2.30.0110.01218.18
7.2.20.0100.01117.90
7.2.10.1300.01717.95
7.2.00.1210.01418.04
7.1.200.0060.00315.89
7.1.160.0600.01616.96
7.1.150.0050.01217.18
7.1.140.1080.01117.13
7.1.130.3150.01117.32
7.1.120.1700.01616.77
7.1.110.1040.00816.29
7.1.100.0100.01016.36
7.1.90.0940.01316.29
7.1.80.0850.00816.26
7.1.70.0980.00915.24
7.1.60.1280.01233.18
7.1.50.1080.01232.84
7.1.40.1140.01432.54
7.1.30.1090.01632.67
7.1.20.0940.01532.77
7.1.10.0860.01514.72
7.1.00.1320.01314.98

preferences:
56.02 ms | 400 KiB | 5 Q