3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! $a = 0; $b = 1; $c = 'e'; var_dump(compact('a', 'b', 'c'));
Output for 4.3.0 - 7.1.0
array(3) { ["a"]=> int(0) ["b"]=> int(1) ["c"]=> string(1) "e" }