3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arrayList = array( array( 'uid' => "1234", 'nilai' => getBoolean (1))); function getBoolean ($value) { return (bool)$value; } echo json_encode ($arrayList);

preferences:
21.62 ms | 475 KiB | 4 Q