3v4l.org

run code in 300+ PHP versions simultaneously
<?php public static $conditionNames = array( self::CONDITION_EQUAL => 'Equals', self::CONDITION_DOES_NOT_EQUAL => 'Does Not Equal', self::CONDITION_CONTAIN => 'Contains', self::CONDITION_DOES_NOT_CONTAIN => 'Does Not Contain', self::CONDITION_GREATER_THAN => 'Greater Than', self::CONDITION_LESS_THAN => 'Less Than', self::CONDITION_STRING_LENGTH_GREATER_THAN => 'String Length Greater Than', self::CONDITION_STRING_LENGTH_LESS_THAN => 'String Length Less Than', self::CONDITION_MATCH_PARTIAL_REGEX => 'Match Partial Regex', self::CONDITION_NOT_MATCH_PARTIAL_REGEX => 'Not Match Partial Regex', self::CONDITION_MATCH_EXACT_REGEX => 'Match Exact Regex', self::CONDITION_NOT_MATCH_EXACT_REGEX => 'Not Match Exact Regex', ); /** * Default methods for operating on the condition. * These MAY be overwritten depending on data type used @see \Entity\Validator::isValid() * @var array */ public static $conditionMethods = array( self::CONDITION_EQUAL => function($subject, $value){ return ($subject == $value); }, self::CONDITION_DOES_NOT_EQUAL => function($subject, $value){ return ($subject != $value); }, self::CONDITION_CONTAIN => function ($subject, $value) { return (strpos($subject, $value) !== false); }, self::CONDITION_DOES_NOT_CONTAIN => function ($subject, $value) { return (strpos($subject, $value) === false); } );
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/7uFPW on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_PUBLIC in /in/7uFPW on line 2
Process exited with code 255.

preferences:
188.23 ms | 1399 KiB | 56 Q