3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("DB", [ "DB_HOST_NAME" => "localhost", "DB_USER_NAME" => "root", "DB_PASSWORD" => "password", "DB_DATABASE" => "db_example" ]); prin_r(DB);
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function prin_r() in /in/PCCah:9 Stack trace: #0 {main} thrown in /in/PCCah on line 9
Process exited with code 255.
Output for hhvm-3.12.14 - 3.17.3
Warning: Constants may only evaluate to scalar values in /in/PCCah on line 7 Fatal error: Uncaught Error: Call to undefined function prin_r() in /in/PCCah:9 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Warning: Constants may only evaluate to scalar values in /in/PCCah on line 7 Fatal error: Call to undefined function prin_r() in /in/PCCah on line 9
Process exited with code 255.