3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $browser->Width = 800; $browser->Height = 3000; $browser->Resizable = false; $browser->Navigate("http://surrenderat20.net"); while ($browser->Busy) { com_message_pump(4000); } ob_start(); $im = imagegrabwindow($handle, 0); imagejpeg($im, NULL, 100); $rawBytes = ob_get_clean(); echo "<div id='screenshot'><img src='data:images/jpeg;base64,".base64_encode($rawBytes)."'/></div>"; $browser->Quit(); imagedestroy($im);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'COM' not found in /in/EIqv0:3 Stack trace: #0 {main} thrown in /in/EIqv0 on line 3
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Class 'COM' not found in /in/EIqv0 on line 3
Process exited with code 255.