3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'CreateOauth.class.php'; $appid = 'XXXXXXXXXXXX'; $appsecret = 'XXXXXXXXXXXXXXXXXXX'; $oauth = new CreateOauth ($appid,$appsecret,30,true); if (!isset($_GET['code'])) { $call_url = 'http://XXXX.com/xxx.php'; $url = $oauth->createOauthUrlForCode($call_url); Header("Location: $url"); } else { $code = $_GET['code']; $oauth->setCode($code); $openid = $oauth->getUserInfo(); echo '<pre />'; var_dump($openid); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(CreateOauth.class.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/qa9Cl on line 3 Warning: include(CreateOauth.class.php): Failed to open stream: Operation not permitted in /in/qa9Cl on line 3 Warning: include(): Failed opening 'CreateOauth.class.php' for inclusion (include_path='.:') in /in/qa9Cl on line 3 Fatal error: Uncaught Error: Class "CreateOauth" not found in /in/qa9Cl:7 Stack trace: #0 {main} thrown in /in/qa9Cl on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.45 ms | 406 KiB | 5 Q