3v4l.org

run code in 300+ PHP versions simultaneously
<?php //////////////////////////// /** * IRCBot = root directory. * * @file: IRCBot/src/Connect.php */ namespace Connect; class Connect { protected $server; // Planning to use this for the YAML config protected $port; // Planning to use this for the YAML config public function connect($server, $port) { try { fsockopen($server, $port); } catch (Exception $e) { echo "[ERROR] " . $e; } return $this; // I want to chain this function with a function called sendUserData... } } //////////////////////////// /** * IRCBot = root directory. * * @file: IRCBot/src/Start.php */ namespace Connect; class Start { // I want to run all functions on startup public function __construct(Connect $connect) { $connect->connect("irc.freenode.net", 6667); } } //////////////////////////// /** * IRCBot = root directory. * * @file: IRCBot/index.php */ require_once 'src/Start.php'; require_once 'src/Connect.php'; use Connect\Connect; use Connect\Start; error_reporting(E_ALL); // @TODO: [ ] Add a utility that get's the native timezone; date_default_timezone_set("UTC"); $connect = new Connect(); var_dump($connect); $start = new Start($connect); var_dump($start);

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.70.0110.00416.66
8.3.60.0120.00316.88
8.3.50.0110.00521.20
8.3.40.0070.00718.63
8.3.30.0070.01018.59
8.3.20.0080.00020.35
8.3.10.0040.00421.77
8.3.00.0060.00319.69
8.2.190.0080.00816.66
8.2.180.0070.01416.63
8.2.170.0150.00622.96
8.2.160.0130.00020.35
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00417.50
8.2.110.0000.00819.21
8.2.100.0080.00417.91
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0050.00319.46
8.2.30.0000.00720.52
8.2.20.0060.00317.75
8.2.10.0040.00418.04
8.2.00.0030.00518.18
8.1.280.0110.00725.92
8.1.270.0100.01022.02
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00623.98
8.1.230.0120.00017.52
8.1.220.0050.00317.79
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.61
8.1.160.0000.00822.03
8.1.150.0030.00518.84
8.1.140.0040.00417.45
8.1.130.0070.00017.56
8.1.120.0000.00717.44
8.1.110.0050.00217.32
8.1.100.0030.00317.44
8.1.90.0040.00417.38
8.1.80.0050.00217.29
8.1.70.0000.00817.40
8.1.60.0000.00817.55
8.1.50.0040.00417.46
8.1.40.0080.00017.55
8.1.30.0030.00517.72
8.1.20.0040.00417.66
8.1.10.0030.00617.54
8.1.00.0030.00517.41
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00718.53
8.0.270.0070.00017.34
8.0.260.0030.00317.29
8.0.250.0040.00417.12
8.0.240.0040.00417.13
8.0.230.0030.00317.00
8.0.220.0040.00417.03
8.0.210.0070.00017.06
8.0.200.0030.00317.09
8.0.190.0040.00417.13
8.0.180.0030.00617.08
8.0.170.0040.00416.98
8.0.160.0040.00416.90
8.0.150.0050.00217.02
8.0.140.0000.00716.99
8.0.130.0060.00013.49
8.0.120.0050.00317.00
8.0.110.0050.00216.99
8.0.100.0000.00816.95
8.0.90.0050.00217.00
8.0.80.0060.00917.01
8.0.70.0030.00517.03
8.0.60.0040.00417.07
8.0.50.0070.00016.94
8.0.30.0070.01017.14
8.0.20.0140.00817.40
8.0.10.0000.00816.90
8.0.00.0110.00916.82
7.4.330.0050.00015.11
7.4.320.0030.00316.54
7.4.300.0000.00716.47
7.4.290.0040.00416.63
7.4.280.0070.00316.50
7.4.270.0030.00316.58
7.4.260.0080.00016.53
7.4.250.0000.00716.57
7.4.240.0030.00416.59
7.4.230.0000.00716.52
7.4.220.0120.00916.47
7.4.210.0110.00716.63
7.4.200.0040.00416.29
7.4.160.0110.00416.51
7.4.150.0150.00617.40
7.4.140.0110.01417.86
7.4.130.0090.00916.58
7.4.120.0100.01016.51
7.4.110.0090.00916.43
7.4.100.0140.00616.52
7.4.90.0130.00616.39
7.4.80.0090.00919.39
7.4.70.0140.00316.29
7.4.60.0040.01416.47
7.4.50.0050.00316.74
7.4.40.0110.00716.30
7.4.30.0140.00316.52
7.4.00.0100.00315.01
7.3.330.0080.00013.18
7.3.320.0000.00513.29
7.3.310.0000.00716.36
7.3.300.0040.00416.34
7.3.290.0030.00316.21
7.3.280.0110.01116.34
7.3.270.0040.01517.40
7.3.260.0130.01216.17
7.3.240.0100.00716.32
7.3.230.0090.00916.39
7.3.210.0070.01016.41
7.3.200.0150.00916.38
7.3.190.0060.01016.34
7.3.180.0000.01916.42
7.3.170.0070.01116.51
7.3.160.0150.00316.25
7.2.330.0090.00916.50
7.2.320.0100.01316.42
7.2.310.0160.00716.72
7.2.300.0180.00416.65
7.2.290.0100.00716.45
7.2.00.0090.00619.18
7.1.100.0280.00717.94
7.1.70.0070.01116.97
7.1.60.0090.01219.27
7.1.50.0070.01016.79
7.1.00.0070.09322.32
7.0.200.0180.00416.57
7.0.60.0070.08320.09
7.0.50.0070.04017.90
7.0.40.0130.06020.04
7.0.30.0230.04720.27
7.0.20.0230.05020.26
7.0.10.0030.04720.24
7.0.00.0130.05320.17
5.6.280.0000.03321.16
5.6.210.0070.07720.70
5.6.200.0100.03718.16
5.6.190.0070.09020.51
5.6.180.3530.03320.48
5.6.170.0300.08020.53
5.6.160.0000.04320.47
5.6.150.0100.07018.29
5.6.140.0000.05018.22
5.6.130.0000.04318.19
5.6.120.0070.07720.90
5.6.110.0100.03721.12
5.6.100.0070.06721.11
5.6.90.0100.07320.99
5.6.80.0000.04320.52
5.6.70.4500.04720.29
5.5.350.0030.04320.44
5.5.340.0030.07318.09
5.5.330.0070.06320.40
5.5.320.0300.07020.30
5.5.310.0170.06020.29
5.5.300.0100.04718.04
5.5.290.0000.04717.99
5.5.280.0000.05020.98
5.5.270.0100.07720.82
5.5.260.0230.06720.77
5.5.250.0100.07720.69
5.5.240.0230.06320.27
5.4.450.0500.05719.31
5.4.440.0500.06319.46
5.4.430.0800.05319.37
5.4.420.0630.06319.61
5.4.410.0400.06019.50
5.4.400.0170.06319.24
5.4.390.0300.06018.98
5.4.380.0300.04018.84
5.4.370.0200.05319.24
5.4.360.0270.07019.11
5.4.350.0330.05019.32
5.4.340.0230.05719.32
5.4.320.0300.05319.15
5.4.310.0170.05719.19
5.4.300.0270.05319.15
5.4.290.0230.06019.15
5.4.280.0200.06019.24
5.4.270.0200.07019.13
5.4.260.0200.06019.11
5.4.250.0100.06719.26
5.4.240.0270.05019.23
5.4.230.0170.06319.30
5.4.220.0230.05319.32
5.4.210.0430.04019.30
5.4.200.0270.05019.13
5.4.190.0230.05319.29
5.4.180.0170.06018.98
5.4.170.0300.05319.14
5.4.160.0330.04019.17
5.4.150.0230.06719.21
5.4.140.0130.06316.39
5.4.130.0170.05316.36
5.4.120.0230.04716.59
5.4.110.0200.05716.57
5.4.100.0170.05316.48
5.4.90.0200.05316.44
5.4.80.0300.04316.64
5.4.70.0170.03716.58
5.4.60.0270.06316.36
5.4.50.0030.05316.54
5.4.40.0000.04016.28
5.4.30.0070.04016.31
5.4.20.0230.05316.17

preferences:
52.59 ms | 401 KiB | 5 Q