3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = json_encode( array( 'n' => 'foo' ) ); if ( null !== ( $decoded = json_decode( $value, true ) ) && isset( $decoded['l'] ) ) { var_dump( $decoded['l'] ); }

preferences:
38.85 ms | 402 KiB | 5 Q