3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'http://adtech-txws-adgtx.stg.iad2.nyt.net/taxonomy-exceptions'; $httpRequest = new HttpRequest($url); $httpRequest->send(); $code = $httpRequest->getResponseCode(); if ($code != 200) { } else { $responseBody = $httpRequest->getResponseBody(); $response = json_encode($responseBody); }
based on r1bNL
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'HttpRequest' not found in /in/VkLrq:4 Stack trace: #0 {main} thrown in /in/VkLrq on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Class 'HttpRequest' not found in /in/VkLrq on line 4
Process exited with code 255.