3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = array( "name" => "JavaScript: The Definitive Guide", "author" => "David Flanagan", "edition" => 6 ); echo json_encode(data);
based on qd97P
Output for 7.2.0
Warning: Use of undefined constant data - assumed 'data' (this will throw an Error in a future version of PHP) in /in/BiFQJ on line 9 "data"
Output for 5.4.0 - 7.1.10
Notice: Use of undefined constant data - assumed 'data' in /in/BiFQJ on line 9 "data"