3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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; }
based on u9X25
Output for 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error 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: php_network_getaddresses: getaddrinfo failed: System error in /in/qkevD on line 7 Notice: Trying to get property 'data' of non-object in /in/qkevD on line 11 Notice: Trying to get property 'paging' of non-object in /in/qkevD on line 13 Warning: count(): Parameter must be an array or an object that implements Countable in /in/qkevD on line 13 Array ( [0] => )
Output for 5.4.15 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4, 7.0.20, 7.1.5 - 7.1.10
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error 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: php_network_getaddresses: getaddrinfo failed: System error in /in/qkevD on line 7 Notice: Trying to get property of non-object in /in/qkevD on line 11 Notice: Trying to get property of non-object in /in/qkevD on line 13 Array ( [0] => )
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known 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: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/qkevD on line 7 Notice: Trying to get property of non-object in /in/qkevD on line 11 Notice: Trying to get property of non-object in /in/qkevD on line 13 Array ( [0] => )
Output for 5.3.19 - 5.4.14
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(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: No such file or directory in /in/qkevD on line 7 Notice: Trying to get property of non-object in /in/qkevD on line 11 Notice: Trying to get property of non-object in /in/qkevD on line 13 Array ( [0] => )