3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HttpStatusCode extends SplEnum { const __default = self::CONTINUE; const 'CONTINUE' = 100; const SWITCHING_PROTOCOLS = 101; const OK = 200; const CREATED = 201; const ACCEPTED = 202; const NON-AUTHORITATIVE_INFORMATION = 203; const NO_CONTENT = 204; const RESET_CONTENT = 205; const PARTIAL_CONTENT = 206; const MULTIPLE_CHOICES = 300; const MOVED_PERMANENTLY = 301; const MOVED_TEMPORARILY = 302; const SEE_OTHER = 303; const NOT_MODIFIED = 304; const USE_PROXY = 305; const BAD_REQUEST = 400; const UNAUTHORIZED = 401; const PAYMENT_REQUIRED = 402; const FORBIDDEN = 403; const NOT_FOUND = 404; const METHOD_NOT_ALLOWED = 405; const NOT_ACCEPTABLE = 406; const PROXY_AUTHENTICATION_REQUIRED = 407; const REQUEST_TIME-OUT = 408; const CONFLICT = 408; const GONE = 410; const LENGTH_REQUIRED = 411; const PRECONDITION_FAILED = 412; const REQUEST_ENTITY_TOO_LARGE = 413; const REQUEST-URI_TOO_LARGE = 414; const UNSUPPORTED_MEDIA_TYPE = 415; const REQUESTED_RANGE_NOT_SATISFIABLE = 416; const EXPECTATION_FAILED = 417; const IM_A_TEAPOT = 418; const INTERNAL_SERVER_ERROR = 500; const NOT_IMPLEMENTED = 501; const BAD_GATEWAY = 502; const SERVICE_UNAVAILABLE = 503; const GATEWAY_TIME-OUT = 504; const HTTP_VERSION_NOT_SUPPORTED = 505; }

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.260.0030.05318.96
5.4.250.0200.04018.65
5.4.240.0100.04719.10
5.4.230.0130.04718.79
5.4.220.0070.08019.10
5.4.210.0170.04319.11
5.4.200.0100.04718.98
5.4.190.0030.06018.95
5.4.180.0070.05318.64
5.4.170.0130.05018.79
5.4.160.0130.05019.01
5.4.150.0070.05718.75
5.4.140.0100.07316.25
5.4.130.0170.06316.51
5.4.120.0170.05016.36
5.4.110.0130.06316.41
5.4.100.0070.05016.62
5.4.90.0030.06316.42
5.4.80.0170.06716.38
5.4.70.0130.05316.46
5.4.60.0200.06316.46
5.4.50.0230.05316.63
5.4.40.0070.05316.44
5.4.30.0030.06716.53
5.4.20.0130.04716.52
5.4.10.0130.05316.38
5.4.00.0100.05315.94
5.3.280.0070.05014.58
5.3.270.0070.05314.51
5.3.260.0130.05314.62
5.3.250.0070.05714.77
5.3.240.0030.05314.59
5.3.230.0100.08014.42
5.3.220.0100.05014.65
5.3.210.0070.07714.65
5.3.200.0070.05014.74
5.3.190.0200.06014.65
5.3.180.0070.06014.57
5.3.170.0130.05314.74
5.3.160.0200.05314.64
5.3.150.0030.07714.64
5.3.140.0170.06714.77
5.3.130.0100.05714.70
5.3.120.0130.06714.63
5.3.110.0100.05714.63
5.3.100.0070.06014.12
5.3.90.0070.05314.23
5.3.80.0170.05314.00
5.3.70.0130.06714.09
5.3.60.0000.06314.21
5.3.50.0070.07013.93
5.3.40.0070.07014.01
5.3.30.0130.07013.98
5.3.20.0070.05313.77
5.3.10.0070.07313.48
5.3.00.0130.04713.64

preferences:
147.61 ms | 1394 KiB | 7 Q