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); } );

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.200.0120.04112.38
5.4.190.0100.04212.37
5.4.180.0220.05812.37
5.4.170.0200.06112.38
5.4.160.0100.04312.37
5.4.150.0130.04512.37
5.4.140.0110.04712.06
5.4.130.0220.05912.04
5.4.120.0110.04512.01
5.4.110.0160.05312.00
5.4.100.0180.05012.00
5.4.90.0180.07212.00
5.4.80.0140.06012.00
5.4.70.0150.06512.00
5.4.60.0240.05612.00
5.4.50.0110.03912.00
5.4.40.0100.03911.99
5.4.30.0190.06611.98
5.4.20.0300.05711.98
5.4.10.0270.06211.98
5.4.00.0240.06611.47
5.3.270.0190.07112.72
5.3.260.0100.04312.72
5.3.250.0140.03912.72
5.3.240.0140.03912.72
5.3.230.0240.06212.71
5.3.220.0140.03812.68
5.3.210.0240.06312.68
5.3.200.0230.06812.68
5.3.190.0220.06412.67
5.3.180.0200.06212.67
5.3.170.0210.06212.67
5.3.160.0190.06512.67
5.3.150.0210.06012.67
5.3.140.0110.04312.66
5.3.130.0150.07012.66
5.3.120.0090.04612.65
5.3.110.0220.06812.65
5.3.100.0260.05712.12
5.3.90.0160.05312.08
5.3.80.0230.06012.07
5.3.70.0120.04212.08
5.3.60.0130.03912.06
5.3.50.0150.06912.00
5.3.40.0180.06612.00
5.3.30.0190.06411.94
5.3.20.0140.04411.72
5.3.10.0120.04211.69
5.3.00.0110.03911.67

preferences:
140.9 ms | 1386 KiB | 7 Q