3v4l.org

run code in 300+ PHP versions simultaneously
<?php function contextCheck($context) { return isset($_GET[$context]) ? $_GET[$context] : false; } $_GET['foo'] = '12'; $_GET['bar'] = '0'; echo 'foo: ', var_export(contextCheck( 'foo' ), true ), "\n", 'bar: ', var_export( contextCheck( 'bar' ), true ); ?>

preferences:
49.84 ms | 402 KiB | 5 Q