3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <form method="post"> <button>Hello</button> </form> HTML; $document = new DOMDocument("1.0", "utf-8"); $f = $document->createDocumentFragment(); $f->appendXML($html); var_dump($fragment->firstChild);

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.0110.00416.86
8.3.50.0000.01516.12
8.3.40.0090.01218.84
8.3.30.0040.01118.89
8.3.20.0080.00020.54
8.3.10.0040.00421.95
8.3.00.0030.00517.97
8.2.180.0110.00717.00
8.2.170.0210.00019.00
8.2.160.0120.00822.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.25
8.2.110.0050.00520.48
8.2.100.0110.00018.16
8.2.90.0090.00019.41
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0040.00417.93
8.2.50.0080.00018.05
8.2.40.0000.00818.00
8.2.30.0030.00517.87
8.2.20.0000.00718.22
8.2.10.0000.00718.20
8.2.00.0030.00518.34
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00324.05
8.1.230.0080.00417.99
8.1.220.0030.00617.90
8.1.210.0000.00818.77
8.1.200.0090.00017.48
8.1.190.0060.00317.35
8.1.180.0060.00318.10
8.1.170.0050.00317.76
8.1.160.0030.00519.14
8.1.150.0050.00318.96
8.1.140.0050.00319.61
8.1.130.0030.00319.05
8.1.120.0000.00717.66
8.1.110.0050.00317.68
8.1.100.0050.00317.57
8.1.90.0050.00317.49
8.1.80.0070.00017.54
8.1.70.0070.00017.54
8.1.60.0000.00817.73
8.1.50.0040.00417.57
8.1.40.0080.00017.72
8.1.30.0000.00817.76
8.1.20.0030.00717.91
8.1.10.0050.00317.83
8.1.00.0030.00617.68
8.0.300.0000.00818.77
8.0.290.0090.00016.88
8.0.280.0040.00418.21
8.0.270.0000.00818.25
8.0.260.0060.00016.98
8.0.250.0070.00017.23
8.0.240.0040.00417.00
8.0.230.0020.00517.18
8.0.220.0070.00017.05
8.0.210.0030.00317.12
8.0.200.0000.00717.20
8.0.190.0030.00617.01
8.0.180.0000.00717.06
8.0.170.0000.00717.15
8.0.160.0030.00717.08
8.0.150.0000.00817.11
8.0.140.0040.00417.08
8.0.130.0000.00513.54
8.0.120.0040.00416.89
8.0.110.0040.00417.09
8.0.100.0030.00617.10
8.0.90.0000.00716.96
8.0.80.0110.01117.16
8.0.70.0040.00416.91
8.0.60.0040.00417.09
8.0.50.0040.00417.12
8.0.30.0100.00817.01
8.0.20.0160.01017.40
8.0.10.0040.00417.17
8.0.00.0110.00616.82
7.4.330.0050.00015.55
7.4.320.0030.00316.82
7.4.300.0030.00316.73
7.4.290.0060.00316.84
7.4.280.0050.00316.55
7.4.270.0060.00316.77
7.4.260.0000.00816.76
7.4.250.0000.00716.69
7.4.240.0000.00816.66
7.4.230.0000.00816.52
7.4.220.0130.01316.72
7.4.210.0000.01416.57
7.4.200.0080.00016.74
7.4.150.0130.00517.40
7.4.140.0150.00617.86
7.4.130.0150.00616.75
7.4.120.0090.01016.76
7.4.110.0060.01216.72
7.4.100.0040.01316.76
7.4.90.0070.01016.72
7.4.80.0160.00619.39
7.4.70.0080.00916.69
7.4.60.0030.01316.55
7.4.50.0090.00916.65
7.4.40.0060.00916.54
7.4.30.0100.00616.74
7.4.00.0070.00715.27
7.3.330.0030.00313.14
7.3.320.0000.00513.29
7.3.310.0000.00716.24
7.3.300.0040.00416.45
7.3.290.0060.00916.46
7.3.280.0080.00916.40
7.3.270.0180.00417.40
7.3.260.0090.00816.41
7.3.250.0090.01216.54
7.3.240.0100.00816.44
7.3.230.0160.00016.50
7.3.210.0120.00616.53
7.3.200.0060.00916.50
7.3.190.0140.00316.49
7.3.180.0090.01316.71
7.3.170.0090.00616.71
7.3.160.0090.00616.42
7.3.10.0100.00316.52
7.3.00.0070.01016.46
7.2.330.0160.00316.93
7.2.320.0090.00916.45
7.2.310.0070.01016.47
7.2.300.0080.01116.55
7.2.290.0110.00716.93
7.2.130.0000.01416.90
7.2.120.0070.00716.91
7.2.110.0070.00716.91
7.2.100.0040.01216.78
7.2.90.0060.01016.69
7.2.80.0100.00316.64
7.2.70.0070.00716.24
7.2.60.0070.00516.88
7.2.50.0060.00916.63
7.2.40.0040.00716.90
7.2.30.0030.00916.91
7.2.20.0000.01416.90
7.2.10.0110.00316.88
7.2.00.0080.00316.82
7.1.250.0000.01315.92
7.1.200.0090.00615.92
7.1.70.0100.01017.26
7.1.60.0180.00934.88
7.1.50.0210.01334.79
7.1.40.0210.01834.39
7.1.30.0210.01734.59
7.1.20.0270.01234.57
7.1.10.0090.00916.55
7.1.00.0070.01116.74
7.0.200.0030.01316.73
7.0.190.0030.01316.54
7.0.180.0130.00616.26
7.0.170.0060.01116.31
7.0.160.0070.01116.53
7.0.150.0060.00916.32
7.0.140.0080.01016.46
7.0.130.0030.01416.43
7.0.120.0000.01716.75
7.0.110.0040.01416.57
7.0.100.0070.01116.36
7.0.90.0060.01216.34
7.0.80.0070.01116.48
7.0.70.0070.01016.43
7.0.60.0070.01016.34
7.0.50.0000.01816.59
7.0.40.0070.01016.50
7.0.30.0110.00616.49
7.0.20.0030.01416.53
7.0.10.0050.01216.45
7.0.00.0030.01516.28

preferences:
51.18 ms | 400 KiB | 5 Q