3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'http://www.google.com/a-url/that/returns/json'; $request = new WP_Http; // or use the $wp_http global $result = $request->request( $url ); $json = $result['body']; $data = json_decode( $json, true );
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'WP_Http' not found in /in/TMbbL:4 Stack trace: #0 {main} thrown in /in/TMbbL on line 4
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Class 'WP_Http' not found in /in/TMbbL on line 4
Process exited with code 255.