3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "my first \nPHP script"; echo '\nmy first script'; $a = 1; $b = 2; echo "a={$a};b={$b}\n"; echo 'a='.$a.'b='.b ?> <div>Div</div>
based on YBJ7T
Output for hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
my first PHP script\nmy first scripta=1;b=2 Notice: Use of undefined constant b - assumed 'b' in /in/AlDsZ on line 9 a=1b=b <div>Div</div>
Output for 4.3.0 - 5.6.28
my first PHP script\nmy first scripta=1;b=2 Notice: Use of undefined constant b - assumed 'b' in /in/AlDsZ on line 10 a=1b=b <div>Div</div>