3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
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 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Class 'ApiResponseValidator' not found in /in/jrQdY on line 4
Process exited with code 255.

preferences:
257.99 ms | 402 KiB | 369 Q