3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $params = ['form_params' => ['azaz' => 1]]; if (!isset( $params['multipart'], $params['json'], $params['body'], $params['form_params'] )) { $params = ['form_params' => $params]; } if (!isset($params[RequestOptions::MULTIPART]) && !isset($params[RequestOptions::JSON]) && !isset($params[RequestOptions::BODY]) && !isset($params[RequestOptions::FORM_PARAMS]) ) { $params = [RequestOptions::FORM_PARAMS => $params]; } var_dump($params);
Output for 7.3.0alpha1
Fatal error: Uncaught Error: Class 'RequestOptions' not found in /in/nFaAM:14 Stack trace: #0 {main} thrown in /in/nFaAM on line 14
Process exited with code 255.