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.'bldsfsdfa';

preferences:
29.08 ms | 402 KiB | 5 Q