3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = ['brandId' => [ 'type' => ApiResponseValidator::API_RESPONSE_FIELD_TYPE_INT, 'isOnlyPositive' => true, 'required' => true, ], 'globalIdentifier' => [ 'type' => ApiResponseValidator::API_RESPONSE_FIELD_TYPE_VARCHAR, 'maxLength' => 255, 'required' => false, ], 'status' => [ 'type' => ApiResponseValidator::API_RESPONSE_FIELD_TYPE_ENUM, 'options' => [ ApiResponseValidator::API_RESPONSE_BRANDS_STATUS_ACTIVE, ApiResponseValidator::API_RESPONSE_BRANDS_STATUS_INACTIVE, ApiResponseValidator::API_RESPONSE_BRANDS_STATUS_DELETED, ], 'required' => true, ], 'name' => [ 'type' => ApiResponseValidator::API_RESPONSE_FIELD_TYPE_VARCHAR, 'maxLength' => 255, 'required' => true, ], 'name_en' => [ 'type' => ApiResponseValidator::API_RESPONSE_FIELD_TYPE_VARCHAR, 'maxLength' => 255, 'required' => false, ]];
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'ApiResponseValidator' not found in /in/jrQdY:4 Stack trace: #0 {main} thrown in /in/jrQdY on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Class 'ApiResponseValidator' not found in /in/jrQdY on line 4
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/jrQdY on line 3
Process exited with code 255.