3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode((object) array( 'text' => $text, 'color' => $color ));
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: text in /in/2UU4N on line 3 Notice: Undefined variable: color in /in/2UU4N on line 4 {"text":null,"color":null}
Output for 5.5.0 - 5.6.28
Notice: Undefined variable: text in /in/2UU4N on line 3 Notice: Undefined variable: color in /in/2UU4N on line 5 {"text":null,"color":null}