3v4l.org

run code in 300+ PHP versions simultaneously
<?php // index.php //require(baseController.php); //require(basemodel.php); //require(header.php); // baseController.php class baseController { function __construct() { } function speak($s) { echo "baseController says ". $s; } function look($l) { echo $l; } //function echoView($view) { //$this->view->render('views/header');// go to view controller and use the render method to echo view.php view. //} } // basemodel.php class baseModel { function __construct() { // acces db with new db(); } //public function userList($i) { //$query = $this->db->prepare('SELECET....'); //$query->execute(); //return $query->fetchAll(); //} } //view.php //<p>This is a view!</p> //header.php //<header></header> // controller methods operate models // userController.php class userController extends baseController { function __construct($s,$l) { parent::speak($s); parent::look($l); } //function edit() { // $tis->view->user = $this->model->userList(); // $this->view->render(user/edit); //} } // model methods operate on the database // usermodel.php class userModel extends baseModel{ function __construct() { parent::__construct(); } public function userList() { $query = $this->db->prepare('SELECET users FROM...'); $query->execute(); return $query->fetchAll(); } } //$home = new baseController("Im in the base"); $home = new userController("Im just a user","and shows you it!");

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)
8.3.60.0100.00316.63
8.3.50.0030.01118.16
8.3.40.0070.00718.83
8.3.30.0080.00818.91
8.3.20.0050.00220.38
8.3.10.0000.00823.66
8.3.00.0050.00319.26
8.2.180.0060.00918.00
8.2.170.0070.01422.96
8.2.160.0100.01020.22
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00322.25
8.2.110.0000.00922.08
8.2.100.0070.00417.72
8.2.90.0080.00019.02
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0100.00017.93
8.2.50.0000.00818.07
8.2.40.0040.00818.22
8.2.30.0060.00318.16
8.2.20.0060.00317.62
8.2.10.0060.00317.96
8.2.00.0030.00717.62
8.1.270.0050.00323.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00523.87
8.1.230.0070.00319.16
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0050.00317.40
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00422.02
8.1.150.0000.00718.64
8.1.140.0080.00017.43
8.1.130.0070.00017.78
8.1.120.0040.00417.36
8.1.110.0040.00417.44
8.1.100.0080.00017.32
8.1.90.0040.00417.44
8.1.80.0060.00317.41
8.1.70.0000.00717.33
8.1.60.0030.00517.53
8.1.50.0050.00317.60
8.1.40.0020.00517.56
8.1.30.0040.00417.66
8.1.20.0000.00717.61
8.1.10.0000.00717.46
8.1.00.0040.00417.50
8.0.300.0080.00318.77
8.0.290.0040.00417.05
8.0.280.0030.00318.61
8.0.270.0000.00817.27
8.0.260.0060.00017.21
8.0.250.0040.00416.87
8.0.240.0050.00317.00
8.0.230.0040.00416.97
8.0.220.0030.00316.95
8.0.210.0000.00616.84
8.0.200.0000.00617.04
8.0.190.0000.00816.96
8.0.180.0080.00016.91
8.0.170.0000.00916.87
8.0.160.0060.00316.89
8.0.150.0000.00716.85
8.0.140.0040.00416.90
8.0.130.0000.00513.32
8.0.120.0040.00416.95
8.0.110.0000.00716.89
8.0.100.0020.00516.89
8.0.90.0000.00716.98
8.0.80.0120.00316.91
8.0.70.0000.00816.74
8.0.60.0000.00716.93
8.0.50.0030.00616.74
8.0.30.0120.00716.96
8.0.20.0100.00917.40
8.0.10.0040.00417.03
8.0.00.0110.01016.92
7.4.330.0050.00015.00
7.4.320.0000.00716.58
7.4.300.0000.00616.53
7.4.290.0040.00416.44
7.4.280.0030.00516.43
7.4.270.0030.00516.50
7.4.260.0030.00316.45
7.4.250.0000.00716.47
7.4.240.0050.00316.63
7.4.230.0050.00316.47
7.4.220.0070.01016.49
7.4.210.0100.00416.64
7.4.200.0000.00816.44
7.4.190.0060.00316.40
7.4.160.0120.00616.31
7.4.150.0090.01217.40
7.4.140.0130.00817.86
7.4.130.0060.01016.56
7.4.120.0060.01716.42
7.4.110.0110.01116.29
7.4.100.0030.01516.58
7.4.90.0090.00916.57
7.4.80.0130.00719.39
7.4.70.0060.00916.34
7.4.60.0140.00716.53
7.4.50.0000.00416.64
7.4.40.0030.01322.77
7.4.30.0060.01316.53
7.4.10.0040.01516.36
7.4.00.0070.00915.74
7.3.330.0060.00013.11
7.3.320.0000.00613.25
7.3.310.0050.00316.29
7.3.300.0040.00416.21
7.3.290.0100.00716.14
7.3.280.0100.00616.20
7.3.270.0100.01017.40
7.3.260.0120.00916.56
7.3.250.0090.00816.25
7.3.240.0130.01016.35
7.3.230.0030.01316.39
7.3.210.0060.01016.45
7.3.200.0080.01119.39
7.3.190.0140.00316.52
7.3.180.0030.01216.35
7.3.170.0120.00316.45
7.3.160.0110.00816.18
7.3.130.0130.00616.37
7.3.120.0070.00915.71
7.3.110.0120.00616.32
7.3.100.0070.00316.13
7.3.90.0090.00616.27
7.3.80.0030.00616.27
7.3.70.0110.00416.38
7.3.60.0130.00316.25
7.3.50.0090.00916.31
7.3.40.0000.01416.38
7.3.30.0070.00716.16
7.3.20.0130.00318.02
7.3.10.0120.00318.07
7.3.00.0060.00618.16
7.2.330.0070.01016.80
7.2.320.0120.00616.49
7.2.310.0090.00916.36
7.2.300.0100.00616.69
7.2.290.0030.01316.74
7.2.260.0100.01016.45
7.2.250.0110.01116.39
7.2.240.0070.00716.80
7.2.230.0070.01016.56
7.2.220.0090.00616.47
7.2.210.0040.00816.63
7.2.200.0110.00716.57
7.2.190.0030.01216.53
7.2.180.0100.00616.52
7.2.170.0090.00916.62
7.2.160.0100.01016.60
7.2.150.0030.00918.39
7.2.140.0030.01518.44
7.2.130.0110.00318.55
7.2.120.0040.01118.20
7.2.110.0060.01018.32
7.2.100.0030.01318.36
7.2.90.0120.00618.52
7.2.80.0110.00818.58
7.2.70.0000.01318.43
7.2.60.0100.01018.49
7.2.50.0080.00318.26
7.2.40.0070.00318.58
7.2.30.0080.01218.51
7.2.20.0040.01218.48
7.2.10.0040.00718.40
7.2.00.0050.00818.84
7.1.330.0000.01517.43
7.1.320.0120.00317.19
7.1.310.0050.00517.30
7.1.300.0110.00717.42
7.1.290.0070.00717.52
7.1.280.0070.01017.39
7.1.270.0000.01217.31
7.1.260.0040.00817.50
7.1.250.0070.00717.23
7.1.240.0070.01017.20
7.1.230.0090.00617.29
7.1.220.0100.00317.25
7.1.210.0120.00417.27
7.1.200.0030.01217.43
7.1.190.0150.00417.18
7.1.180.0000.01517.25
7.1.170.0110.00417.43
7.1.160.0040.01217.36
7.1.150.0030.00917.30
7.1.140.0040.01117.41
7.1.130.0000.01217.30
7.1.120.0090.00617.16
7.1.110.0040.00817.22
7.1.100.0050.00917.86
7.1.90.0030.01017.38
7.1.80.0070.00717.32
7.1.70.0010.00817.14
7.1.60.0060.00718.38
7.1.50.0050.01417.01
7.1.40.0060.01417.24
7.1.30.0040.01717.31
7.1.20.0040.01517.42
7.1.10.0070.01017.28
7.1.00.0100.04019.95
7.0.330.0030.00716.94
7.0.320.0000.01217.16
7.0.310.0030.01217.05
7.0.300.0040.01117.10
7.0.290.0040.01116.91
7.0.280.0070.00417.16
7.0.270.0090.00316.99
7.0.260.0070.00316.84
7.0.250.0030.01217.07
7.0.240.0040.01416.96
7.0.230.0070.00316.97
7.0.220.0080.00416.89
7.0.210.0030.01016.89
7.0.200.0050.00716.91
7.0.190.0100.00017.13
7.0.180.0090.00917.11
7.0.170.0100.01016.97
7.0.160.0090.00617.19
7.0.150.0100.01017.01
7.0.140.0060.04119.62
7.0.130.0060.00916.98
7.0.120.0030.01416.98
7.0.110.0070.01017.11
7.0.100.0050.04918.43
7.0.90.0100.04318.42
7.0.80.0030.03418.58
7.0.70.0070.02418.50
7.0.60.0100.02818.60
7.0.50.0120.02318.53
7.0.40.0060.03317.40
7.0.30.0090.02117.54
7.0.20.0060.02317.55
7.0.10.0080.02317.40
7.0.00.0100.02017.57
5.6.400.0090.00615.86
5.6.390.0100.00315.73
5.6.380.0030.01415.86
5.6.370.0080.00615.88
5.6.360.0100.00716.20
5.6.350.0130.00315.77
5.6.340.0060.00915.68
5.6.330.0070.00715.88
5.6.320.0060.00915.95
5.6.310.0040.01215.99
5.6.300.0140.00916.10
5.6.290.0040.01515.68
5.6.280.0060.04018.57
5.6.270.0040.01315.87
5.6.260.0140.00515.66
5.6.250.0110.04418.21
5.6.240.0050.03418.33
5.6.230.0020.05318.17
5.6.220.0100.03718.32
5.6.210.0120.02218.26
5.6.200.0040.03118.39
5.6.190.0030.02718.43
5.6.180.0060.04118.42
5.6.170.0060.02618.43
5.6.160.0020.03618.38
5.6.150.0050.02218.63
5.6.140.0050.02718.42
5.6.130.0050.02318.44
5.6.120.0030.02318.39
5.6.110.0050.02318.52
5.6.100.0070.02018.39
5.6.90.0020.02718.56
5.6.80.0030.02718.01
5.6.70.0060.02818.10
5.6.60.0050.02418.27
5.6.50.0050.02518.11
5.6.40.0070.01818.10
5.6.30.0030.02718.02
5.6.20.0030.02318.10
5.6.10.0030.02718.11
5.6.00.0030.02418.10
5.5.380.0080.04918.04
5.5.370.0120.03818.18
5.5.360.0080.04018.19
5.5.350.0020.02918.06
5.5.340.0080.02618.28
5.5.330.0090.02118.39
5.5.320.0110.01818.23
5.5.310.0020.02618.28
5.5.300.0050.02318.47
5.5.290.0090.02318.21
5.5.280.0050.02018.39
5.5.270.0030.02718.20
5.5.260.0020.02918.21
5.5.250.0050.02618.10
5.5.240.0050.02417.96
5.5.230.0050.02317.99
5.5.220.0050.02217.97
5.5.210.0030.02417.83
5.5.200.0040.02417.95
5.5.190.0050.02517.99
5.5.180.0050.02317.94
5.5.170.0030.01015.80
5.5.160.0070.01718.02
5.5.150.0070.01817.91
5.5.140.0070.01617.99
5.5.130.0020.02517.84
5.5.120.0080.01717.93
5.5.110.0000.02318.03
5.5.100.0050.01917.95
5.5.90.0050.02117.92
5.5.80.0040.02117.80
5.5.70.0070.02017.86
5.5.60.0070.02217.86
5.5.50.0040.04117.95
5.5.40.0080.01817.82
5.5.30.0050.02217.91
5.5.20.0060.03317.95
5.5.10.0130.03317.81
5.5.00.0100.04217.86
5.4.450.0090.02816.07
5.4.440.0010.03316.12
5.4.430.0020.02316.09
5.4.420.0060.02015.93
5.4.410.0060.02815.89
5.4.400.0030.02515.94
5.4.390.0040.02215.93
5.4.380.0040.01815.91
5.4.370.0030.02315.89
5.4.360.0040.01915.96
5.4.350.0030.01815.87
5.4.340.0020.02415.91
5.4.330.0100.00312.69
5.4.320.0040.01915.90
5.4.310.0060.01615.82
5.4.300.0020.02515.93
5.4.290.0020.02215.86
5.4.280.0020.02215.90
5.4.270.0050.01815.86
5.4.260.0020.01815.78
5.4.250.0070.01515.86
5.4.240.0050.02415.91
5.4.230.0000.02215.90
5.4.220.0050.02015.92
5.4.210.0070.03815.86
5.4.200.0030.02815.79
5.4.190.0080.02815.86
5.4.180.0050.02215.88
5.4.170.0120.02715.88
5.4.160.0050.02315.88
5.4.150.0030.03715.90
5.4.140.0030.02314.54
5.4.130.0030.04314.55
5.4.120.0040.04114.50
5.4.110.0110.02114.61
5.4.100.0070.02914.55
5.4.90.0020.02114.51
5.4.80.0030.02414.62
5.4.70.0050.04314.63
5.4.60.0030.03814.54
5.4.50.0060.03114.55
5.4.40.0000.03514.57
5.4.30.0070.03714.53
5.4.20.0120.02814.57
5.4.10.0050.02114.55
5.4.00.0000.02514.28
5.3.290.0030.02513.80
5.3.280.0060.01913.81
5.3.270.0050.04513.81
5.3.260.0070.03213.87
5.3.250.0050.02613.83
5.3.240.0030.02413.77
5.3.230.0080.03513.74
5.3.220.0140.03413.76
5.3.210.0030.03913.73
5.3.200.0050.02513.72
5.3.190.0030.02313.79
5.3.180.0050.02013.89
5.3.170.0030.02413.81
5.3.160.0090.02813.82
5.3.150.0080.03613.86
5.3.140.0080.03713.77
5.3.130.0050.04313.74
5.3.120.0040.04413.79
5.3.110.0010.03013.71
5.3.100.0080.01713.51
5.3.90.0020.02613.59
5.3.80.0030.02913.59
5.3.70.0020.03613.49
5.3.60.0070.01813.46
5.3.50.0020.02213.41
5.3.40.0070.02113.53
5.3.30.0050.03613.45
5.3.20.0020.02513.37
5.3.10.0080.03213.23
5.3.00.0080.03913.22
5.2.170.0030.03011.09
5.2.160.0100.04711.02
5.2.150.0000.03010.98
5.2.140.0000.03311.25
5.2.130.0070.02711.21
5.2.120.0070.02311.16
5.2.110.0100.04311.18
5.2.100.0030.05011.20
5.2.90.0030.02711.25
5.2.80.0000.03311.02
5.2.70.0000.05011.10
5.2.60.0100.05011.18
5.2.50.0100.04011.05
5.2.40.0030.02711.13
5.2.30.0070.03711.06
5.2.20.0070.03311.02
5.2.10.0000.05710.96
5.2.00.0030.02710.79
5.1.60.0030.04010.00
5.1.50.0070.05010.02
5.1.40.0000.03310.06
5.1.30.0100.04710.37
5.1.20.0030.04310.29
5.1.10.0070.04010.15
5.1.00.0070.03010.07
5.0.50.0030.0478.55
5.0.40.0070.0378.50
5.0.30.0000.0608.34
5.0.20.0000.0208.34
5.0.10.0000.0278.34
5.0.00.0000.0478.34
4.4.90.0100.0278.34
4.4.80.0000.0238.34
4.4.70.0000.0308.34
4.4.60.0030.0278.34
4.4.50.0030.0208.34
4.4.40.0030.0238.34
4.4.30.0070.0208.34
4.4.20.0030.0138.34
4.4.10.0000.0408.34
4.4.00.0030.0238.34
4.3.110.0070.0138.34
4.3.100.0000.0178.34
4.3.90.0000.0238.34
4.3.80.0030.0478.34
4.3.70.0030.0238.34
4.3.60.0070.0138.34
4.3.50.0030.0138.34
4.3.40.0000.0438.34
4.3.30.0000.0278.34
4.3.20.0030.0308.34
4.3.10.0030.0178.34
4.3.00.0000.0208.34

preferences:
61.34 ms | 400 KiB | 5 Q