3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c=<<<CODE <?php \$c=<<<CODE %s CODE; printf($c, $c); CODE; printf($c, $c);
Output for 7.2.0 - 7.3.0beta1
<?php $c=<<<CODE <?php $c=<<<CODE %s Warning: Use of undefined constant CODE - assumed 'CODE' (this will throw an Error in a future version of PHP) in /in/rVhOu on line 8 <?php $c=<<<CODE <?php $c=<<<CODE %s
Output for 4.3.0 - 4.4.1, 4.4.3 - 5.1.1, 5.1.3 - 7.1.20
<?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