3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "DOM: "; var_dump(class_exists('DOMDocument')); $html = '<div><p>Hello world</p></div>'; $dom = new DOMDocument(); $dom->loadHTML($html); echo $dom->saveHTML();

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.5.90.0260.00518.90
8.5.80.0210.00417.11
8.5.70.0140.00516.80
8.5.60.0120.00716.81
8.5.50.0160.00216.44
8.5.40.0150.00316.88
8.5.30.0180.00316.73
8.5.20.0140.00516.53
8.5.10.0140.00616.55
8.5.00.0040.00416.71
8.4.240.0040.00519.86
8.4.230.0140.00519.50
8.4.220.0130.00519.62
8.4.210.0130.00519.53
8.4.200.0140.00619.27
8.4.190.0160.01019.74
8.4.180.0200.00519.47
8.4.170.0160.00419.73
8.4.160.0160.00419.28
8.4.150.0160.00419.70
8.4.140.0150.00517.61
8.4.130.0160.00417.63
8.4.120.0160.00517.91
8.4.110.0160.00317.88
8.4.100.0180.00417.92
8.4.90.0250.00718.02
8.4.80.0200.00917.98
8.4.70.0170.00417.81
8.4.60.0180.00217.89
8.4.50.0160.00318.04
8.4.40.0140.00717.76
8.4.30.0170.00217.64
8.4.20.0150.00417.70
8.4.10.0170.00517.80
8.3.330.0110.00718.23
8.3.320.0170.00118.45
8.3.310.0120.00518.42
8.3.300.0160.00218.27
8.3.290.0120.00618.33
8.3.280.0130.00518.48
8.3.270.0150.00316.91
8.3.260.0140.00316.64
8.3.250.0150.00416.77
8.3.240.0160.00416.68
8.3.230.0170.00516.45
8.3.220.0150.00416.75
8.3.210.0150.00516.61
8.3.200.0150.00416.61
8.3.190.0120.00616.69
8.3.180.0150.00516.69
8.3.170.0150.00416.78
8.3.160.0120.00616.78
8.3.150.0170.00316.48
8.3.140.0160.00316.53
8.3.130.0130.00416.82
8.3.120.0110.00516.63
8.3.110.0170.00616.70
8.3.100.0190.00116.69
8.3.90.0150.00516.72
8.3.80.0150.00516.63
8.3.70.0140.00416.77
8.3.60.0180.00516.66
8.3.50.0140.00516.77
8.3.40.0130.00717.87
8.3.30.0090.00617.83
8.3.20.0110.00417.91
8.3.10.0100.00617.84
8.3.00.0120.00317.88
8.2.330.0130.00518.02
8.2.320.0140.00418.12
8.2.310.0150.00318.18

preferences:
33.24 ms | 791 KiB | 5 Q