3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller{ public static function pieces(){ $p=explode("/", $_SERVER['REQUEST_URI']);//mag leeg zijn $p=array_filter($p); $pieces=array_values($p); new static($pieces);} final private function __construct($pieces){ $this->_construct(); #$this->inlog = new UserLogin; #$this->mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE); #$this->inlog->sec_session_start();} protected function _construct(){}} Controller::pieces(); ?>

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.300.2500.03719.14
5.4.290.3070.03719.22
5.4.280.2870.04019.06
5.4.270.2500.03719.00
5.4.260.2700.03018.99
5.4.250.2770.04019.14
5.4.240.2670.04018.94
5.4.230.2700.03719.07
5.4.220.3100.05019.05
5.4.210.2830.03318.95
5.4.200.2730.03719.14
5.4.190.2830.03319.05
5.4.180.2700.03719.32
5.4.170.2470.04718.98
5.4.160.2700.04319.16
5.4.150.2700.04318.98
5.4.140.2830.03316.29
5.4.130.2970.03316.38
5.4.120.2730.02716.35
5.4.110.2870.03716.56
5.4.100.2630.04016.59
5.4.90.2930.03716.50
5.4.80.3200.03316.54
5.4.70.2630.03016.44
5.4.60.3070.03316.45
5.4.50.2930.03016.53
5.4.40.2830.04016.26
5.4.30.2800.03716.55
5.4.20.2630.02716.50
5.4.10.2800.03716.37
5.4.00.2800.04015.88
5.3.280.2730.04314.50
5.3.270.2570.04314.50
5.3.260.2830.05014.70
5.3.250.3070.04314.52
5.3.240.2970.03314.68
5.3.230.2900.03714.60
5.3.220.2900.03714.68
5.3.210.2700.03014.56
5.3.200.2500.04014.56
5.3.190.2970.03014.71
5.3.180.2630.03314.64
5.3.170.2830.03714.48
5.3.160.2800.03714.59
5.3.150.2770.04014.71
5.3.140.2730.04014.46
5.3.130.2600.04314.70
5.3.120.2870.04014.56
5.3.110.3070.03714.52
5.3.100.2830.03314.19
5.3.90.3200.04314.10
5.3.80.3030.03013.94
5.3.70.2630.03713.95
5.3.60.2670.03314.01
5.3.50.2770.03314.07
5.3.40.2600.04314.03
5.3.30.2970.03313.81
5.3.20.2300.03313.78
5.3.10.2630.03313.69
5.3.00.2670.03313.61

preferences:
136.36 ms | 1394 KiB | 7 Q