3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 'camelCase' => ' value and things', 'non_camel_case' => 'Other stuff', 'list' => array('a','b','c')); print_r($arr); $json = json_encode($arr); echo $json;

preferences:
34.47 ms | 402 KiB | 5 Q