3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php header('Content-Type: application/json'); function returnJSON (string $string, bool $success) { exit(json_encode(['success' => $success, 'message' => $string])); //doesnt print anything } if ($someCondition) returnJSON("This message is not printed...", false);
Output for 7.3.0rc3
Notice: Undefined variable: someCondition in /in/qUMeP on line 9