3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo"hello world"; $x=20; $y=30; $z=$x+$y; echo"$z"; function dear() { $a=10; echo"$a"; } dear();
based on kQDHj
Output for 4.3.0 - 7.1.0
hello world5010