3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo '{"test":"bla"}'; }; print_r(json_decode($var = test())); echo "\n"; echo $var.'bla';

preferences:
57.05 ms | 402 KiB | 5 Q