3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $credits = 1; $energy = 2; $fuel = 3: $upgrade = 4; echo json_encode( array( "fuel" => $fuel, "energy" => $energy, "credits" => $credits, "upgrades" => $upgrade ) ); ?>
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ':' in /in/NHA7f on line 4
Process exited with code 255.