3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c=<<<CODE <?php \$c=<<<CODE %s CODE; printf($c, $c); CODE; printf($c, $c);
Output for 4.3.0 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
<?php $c=<<<CODE <?php $c=<<<CODE %s Notice: Use of undefined constant CODE - assumed 'CODE' in /in/rVhOu on line 8 <?php $c=<<<CODE <?php $c=<<<CODE %s
Output for 4.4.2, 5.1.2
<?php $c=<<<CODE <?php $c=<<<CODE %s Notice: Use of undefined constant CODE - assumed 'CODE' in /in/rVhOu on line 9 <?php $c=<<<CODE <?php $c=<<<CODE %s