3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x=5; $y=10.50; $txt="hello world"; $z=$x+$y; $cars=array("bmw","audi","benz"); echo $z; print "$txt.$z"; var_dump($x); var_dump($y); var_dump($txt); var_dump($z); var_dump($cars);
based on RSAls
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
15.5hello world.15.5int(5) float(10.5) string(11) "hello world" float(15.5) array(3) { [0]=> string(3) "bmw" [1]=> string(4) "audi" [2]=> string(4) "benz" }