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("roddenberry.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.60.0110.01116.75
8.3.50.0080.01221.15
8.3.40.0110.00419.15
8.3.30.0060.00919.01
8.3.20.0050.00320.50
8.3.10.0040.00422.10
8.3.00.0040.00419.81
8.2.180.0100.00616.98
8.2.170.0120.00622.96
8.2.160.0100.00320.57
8.2.150.0110.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0030.00617.85
8.2.110.0100.00719.37
8.2.100.0080.00418.00
8.2.90.0040.00419.48
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0080.00418.05
8.2.50.0050.00318.07
8.2.40.0060.00319.21
8.2.30.0050.00320.75
8.2.20.0000.00817.85
8.2.10.0040.00418.33
8.2.00.0040.00418.14
8.1.280.0100.00725.92
8.1.270.0070.01122.23
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00620.98
8.1.230.0100.00317.60
8.1.220.0000.00818.01
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0050.00317.47
8.1.180.0000.00818.10
8.1.170.0060.00318.78
8.1.160.0040.00422.22
8.1.150.0030.00619.05
8.1.140.0060.00317.73
8.1.130.0000.00717.91
8.1.120.0040.00417.57
8.1.110.0040.00417.68
8.1.100.0000.00717.62
8.1.90.0040.00417.79
8.1.80.0040.00417.68
8.1.70.0030.00617.54
8.1.60.0040.00417.69
8.1.50.0000.00817.64
8.1.40.0060.00317.55
8.1.30.0030.00517.85
8.1.20.0050.00317.72
8.1.10.0030.00517.68
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0040.00418.65
8.0.270.0030.00317.40
8.0.260.0000.00717.52
8.0.250.0040.00417.15
8.0.240.0000.00817.16
8.0.230.0040.00317.12
8.0.220.0040.00417.07
8.0.210.0000.00817.18
8.0.200.0060.00017.16
8.0.190.0030.00517.12
8.0.180.0050.00317.13
8.0.170.0040.00417.06
8.0.160.0050.00317.12
8.0.150.0070.00017.04
8.0.140.0000.00817.07
8.0.130.0000.00813.74
8.0.120.0090.00017.16
8.0.110.0000.00817.19
8.0.100.0040.00417.11
8.0.90.0000.00817.21
8.0.80.0060.00917.23
8.0.70.0050.00217.17
8.0.60.0000.00717.26
8.0.50.0040.00417.13
8.0.30.0130.00517.30
8.0.20.0080.01217.40
8.0.10.0040.00417.46
8.0.00.0160.00917.17
7.4.330.0030.00315.44
7.4.320.0030.00316.73
7.4.300.0060.00016.63
7.4.290.0080.00016.63
7.4.280.0000.01116.62
7.4.270.0030.00316.64
7.4.260.0040.00416.72
7.4.250.0000.00816.77
7.4.240.0030.00516.78
7.4.230.0000.00816.68
7.4.220.0130.00716.86
7.4.210.0090.00616.76
7.4.200.0000.00816.79
7.4.160.0150.00816.80
7.4.150.0030.01517.40
7.4.140.0070.01517.86
7.4.130.0080.01116.84
7.4.120.0080.01116.87
7.4.110.0090.00916.73
7.4.100.0030.01716.85
7.4.90.0090.00916.90
7.4.80.0090.00919.39
7.4.70.0090.01516.68
7.4.60.0000.02316.82
7.4.50.0000.00916.80
7.4.40.0160.00716.96
7.4.30.0040.01516.88
7.4.00.0040.01415.33
7.3.330.0070.00013.32
7.3.320.0000.00513.30
7.3.310.0030.00516.56
7.3.300.0030.00316.46
7.3.290.0000.00716.42
7.3.280.0090.01016.50
7.3.270.0150.00317.40
7.3.260.0140.01116.52
7.3.250.0100.00916.77
7.3.240.0130.00516.77
7.3.230.0090.00916.72
7.3.210.0150.00916.52
7.3.200.0070.01016.78
7.3.190.0030.01816.64
7.3.180.0060.01816.70
7.3.170.0090.00916.70
7.3.160.0150.00616.49
7.3.120.0140.00314.89
7.3.110.0050.00815.19
7.3.100.0030.01015.02
7.3.90.0040.00815.14
7.3.80.0080.00314.95
7.3.70.0140.00014.73
7.3.60.0040.01115.08
7.3.50.0060.00915.05
7.3.40.0100.00715.12
7.3.30.0000.01314.79
7.3.20.0030.01016.73
7.3.10.0040.00916.93
7.3.00.0100.00316.72
7.2.330.0120.00716.97
7.2.320.0140.00717.06
7.2.310.0070.01117.00
7.2.300.0090.00916.83
7.2.290.0130.00316.86
7.2.240.0090.00915.52
7.2.230.0090.00615.16
7.2.220.0070.01015.55
7.2.210.0000.01715.32
7.2.200.0040.00815.32
7.2.190.0030.01515.32
7.2.180.0040.00815.27
7.2.170.0060.00615.31
7.2.160.0050.00514.91
7.2.150.0000.00916.98
7.2.140.0040.00817.14
7.2.130.0030.01317.14
7.2.120.0090.00317.09
7.2.110.0030.00817.21
7.2.100.0060.00317.23
7.2.90.0000.01417.18
7.2.80.0050.00716.98
7.2.70.0040.00817.10
7.2.60.0050.01017.10
7.2.50.0050.00517.14
7.2.40.0030.01016.89
7.2.30.0070.00717.20
7.2.20.0110.00417.00
7.2.10.0030.00616.80
7.2.00.0070.00718.20
7.1.330.0070.01015.89
7.1.320.0100.00716.04
7.1.310.0030.01215.98
7.1.300.0060.00915.82
7.1.290.0000.01515.80
7.1.280.0030.00615.87
7.1.270.0060.00616.05
7.1.260.0060.01015.89
7.1.250.0040.01115.95
7.1.200.0040.00416.08
7.1.100.0000.01318.20
7.1.70.0000.00817.26
7.1.60.0030.01019.27
7.1.50.0350.00335.25
7.1.00.0030.09322.68
7.0.200.0140.01416.70
7.0.60.0100.07020.37
7.0.50.0170.05318.18
7.0.40.0030.09020.51
7.0.30.0300.07020.45
7.0.20.0200.08020.52
7.0.10.0070.06320.47
7.0.00.0130.08720.48
5.6.280.0000.05021.34
5.6.210.0030.08321.04
5.6.200.0030.09018.54
5.6.190.0130.08020.95
5.6.180.3170.05021.11
5.6.170.0200.07320.81
5.6.160.0100.05020.80
5.6.150.0070.08318.52
5.6.140.0030.08718.43
5.6.130.0130.08018.45
5.6.120.0000.04321.29
5.6.110.0130.04721.38
5.6.100.0130.08021.53
5.6.90.0070.08321.31
5.6.80.0170.06720.82
5.6.70.4530.04320.64
5.5.350.0000.08020.86
5.5.340.0100.07018.41
5.5.330.0070.05020.88
5.5.320.0200.04020.76
5.5.310.0400.06720.63
5.5.300.0100.07718.26
5.5.290.0070.07018.36
5.5.280.0100.07721.30
5.5.270.0170.07321.09
5.5.260.0100.07721.29
5.5.250.0100.07021.06
5.5.240.0300.07020.64
5.4.450.0730.06019.76
5.4.440.0900.05719.79
5.4.430.0970.04319.76
5.4.420.0770.06019.65
5.4.410.0770.05019.36
5.4.400.0930.04319.36
5.4.390.0770.05019.44
5.4.380.0900.05319.41
5.4.370.0730.05319.31
5.4.360.0800.06319.41
5.4.350.0800.06019.27
5.4.340.0870.05019.46
5.4.320.0830.05319.25
5.4.310.0830.05319.30
5.4.300.0730.05319.30
5.4.290.0870.05019.41
5.4.280.0900.05719.47
5.4.270.0800.05319.47
5.4.260.0730.05319.46
5.4.250.0870.05019.40
5.4.240.0730.05319.35
5.4.230.0700.05719.23
5.4.220.0570.07019.35
5.4.210.0800.05019.35
5.4.200.0870.05719.15
5.4.190.0600.06319.18
5.4.180.0770.06019.43
5.4.170.0770.05719.46
5.4.160.0870.05719.17
5.4.150.0770.06719.23
5.4.140.0870.05716.84
5.4.130.0770.05016.73
5.4.120.0830.04316.65
5.4.110.0930.04316.90
5.4.100.0870.05016.56
5.4.90.0770.05316.85
5.4.80.0870.04716.70
5.4.70.0330.05717.19
5.4.60.0370.06317.04
5.4.50.0030.03316.99
5.4.40.0000.03717.12
5.4.30.0000.07716.98
5.4.20.0270.03317.00

preferences:
61.96 ms | 401 KiB | 5 Q