3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = 10; echo "aa $v"; print "aa $v"; echo "aa ".$v." bb"; print "aa ".$v." bb"; echo '>',$s,'>'; print '>'.$s.'>';
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
aa 10aa 10aa 10 bbaa 10 bb> Notice: Undefined variable: s in /in/m5Cjm on line 9 > Notice: Undefined variable: s in /in/m5Cjm on line 10 >>
Output for 4.3.0 - 5.0.3
aa 10aa 10aa 10 bbaa 10 bb> Notice: Undefined variable: s in /in/m5Cjm on line 9 > Notice: Undefined variable: s in /in/m5Cjm on line 10 >>