3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(search_next("https://graph.facebook.com/v2.4/215365285142591/posts?limit=100&format=json&access_token=CAAU1wFJC3B4BAMRwMmO9WeQ05kQuIbRoEQchQZAJhFCT21iolu2AgdkP7ftIwSzWolPAOazAOtGDzbdwjxHtnJGKWZChZBOMolYZAZB4aPnAZBVNe0TZBRLrC5ZCo6mUdD0GXjEhsvFMbVedQRpLKfTzBQU1dKMZCTYrnT6tEgyDgJf1wZBGtWp3wZAH0XoZACQDOtPZCm5G48uBTEPNbMv9MZAkfi&until=1434258144&__paging_token=enc_AdCSxfhZCLaWzKLZAMjBldWY56gg3OZAfZCyplLBOU1Rl6XOHcveIU5rZCQsSbewLe3FQ27sztix4xBmlpBAFdxaVvZAMAjN27uxO6tXHd7ZAbQNcHDZAQZDZD")); function search_next($url) { $lPost = json_decode(file_get_contents($url)); $listacompelta = array(); array_push($listacompelta, json_decode($lPost->data)); if(count($lPost->paging)) { if(count($lPost->paging->next)) { return array_merge($listacompelta,$this->search_next($lPost->paging->next)); } } return $listacompelta; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/qkevD on line 7 Warning: file_get_contents(): open_basedir restriction in effect. File(https://graph.facebook.com/v2.4/215365285142591/posts?limit=100&format=json&access_token=CAAU1wFJC3B4BAMRwMmO9WeQ05kQuIbRoEQchQZAJhFCT21iolu2AgdkP7ftIwSzWolPAOazAOtGDzbdwjxHtnJGKWZChZBOMolYZAZB4aPnAZBVNe0TZBRLrC5ZCo6mUdD0GXjEhsvFMbVedQRpLKfTzBQU1dKMZCTYrnT6tEgyDgJf1wZBGtWp3wZAH0XoZACQDOtPZCm5G48uBTEPNbMv9MZAkfi&until=1434258144&__paging_token=enc_AdCSxfhZCLaWzKLZAMjBldWY56gg3OZAfZCyplLBOU1Rl6XOHcveIU5rZCQsSbewLe3FQ27sztix4xBmlpBAFdxaVvZAMAjN27uxO6tXHd7ZAbQNcHDZAQZDZD) is not within the allowed path(s): (/tmp:/in:/etc) in /in/qkevD on line 7 Warning: file_get_contents(https://graph.facebook.com/v2.4/215365285142591/posts?limit=100&format=json&access_token=CAAU1wFJC3B4BAMRwMmO9WeQ05kQuIbRoEQchQZAJhFCT21iolu2AgdkP7ftIwSzWolPAOazAOtGDzbdwjxHtnJGKWZChZBOMolYZAZB4aPnAZBVNe0TZBRLrC5ZCo6mUdD0GXjEhsvFMbVedQRpLKfTzBQU1dKMZCTYrnT6tEgyDgJf1wZBGtWp3wZAH0XoZACQDOtPZCm5G48uBTEPNbMv9MZAkfi&until=1434258144&__paging_token=enc_AdCSxfhZCLaWzKLZAMjBldWY56gg3OZAfZCyplLBOU1Rl6XOHcveIU5rZCQsSbewLe3FQ27sztix4xBmlpBAFdxaVvZAMAjN27uxO6tXHd7ZAbQNcHDZAQZDZD): Failed to open stream: Operation not permitted in /in/qkevD on line 7 Warning: Attempt to read property "data" on null in /in/qkevD on line 11 Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /in/qkevD on line 11 Warning: Attempt to read property "paging" on null in /in/qkevD on line 13 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/qkevD:13 Stack trace: #0 /in/qkevD(3): search_next('https://graph.f...') #1 {main} thrown in /in/qkevD on line 13
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:
49.78 ms | 403 KiB | 8 Q