3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "a\na"; $b = "b"; print($a."\n"); print($b."\n"); $array = array($a, $b); print_r($array); var_dump($array);
Output for 5.3.7 - 7.1.0
a a b Array ( [0] => a a [1] => b ) array(2) { [0]=> string(3) "a a" [1]=> string(1) "b" }