3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 123; $bar = 321; var_dump(compact('foo', 'bar'));
Output for 4.3.0 - 7.1.0
array(2) { ["foo"]=> int(123) ["bar"]=> int(321) }