3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"GetCodeResult": { "Selling":"1000.67114", "Buying":"9000.65789" } }'; list($selling, $buying) = array_values(json_decode($json, true)['GetCodeResult']); echo $selling .PHP_EOL; echo $buying .PHP_EOL;

preferences:
28.28 ms | 405 KiB | 5 Q