3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $request = [ "Project" => ["Id"=>2], //in the project #2 "Name"=>"Test" //with a name 'Test' ]; $json = json_encode($request); echo "JSON payload: " . $json . "<br><br>"; ?>
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
JSON payload: {"Project":{"Id":2},"Name":"Test"}<br><br>