3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); ?> <!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <title>3v4l - EvAluate your code in our online PHP shell (100+ PHP versions)</title> <meta name="keywords" content="php,codepad,fiddle,phpfiddle,shell,xdebug,vld,performance"/> <meta name="author" content="Sjon Hortensius - sjon@hortensius.net" /> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link rel="stylesheet" href="/s/c.css"/> <script>var events = events || [];</script> </head> <?php $output = ob_get_contents(); ob_end_clean(); $output = preg_replace('/\s{2,}/',' ', $output); echo $output; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <title>3v4l - EvAluate your code in our online PHP shell (100+ PHP versions)</title> <meta name="keywords" content="php,codepad,fiddle,phpfiddle,shell,xdebug,vld,performance"/> <meta name="author" content="Sjon Hortensius - sjon@hortensius.net" /> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link rel="stylesheet" href="/s/c.css"/> <script>var events = events || [];</script> </head>