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.40.0070.00719.00
8.3.30.0090.00618.96
8.3.20.0000.00820.61
8.3.10.0080.00022.15
8.3.00.0090.00019.80
8.2.170.0110.00422.96
8.2.160.0150.00020.34
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00418.00
8.2.110.0100.00721.29
8.2.100.0100.00317.97
8.2.90.0080.00019.47
8.2.80.0040.00417.97
8.2.70.0030.00617.73
8.2.60.0040.00818.16
8.2.50.0040.00418.07
8.2.40.0050.00319.55
8.2.30.0040.00422.61
8.2.20.0040.00417.90
8.2.10.0040.00418.16
8.2.00.0000.00818.28
8.1.270.0100.01022.36
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0060.00324.16
8.1.230.0140.00022.88
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0030.00717.60
8.1.190.0040.00417.50
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0000.00722.14
8.1.150.0040.00419.00
8.1.140.0060.00317.79
8.1.130.0030.00317.85
8.1.120.0040.00417.66
8.1.110.0040.00417.70
8.1.100.0050.00317.72
8.1.90.0000.00717.68
8.1.80.0050.00317.65
8.1.70.0000.00717.82
8.1.60.0000.00817.69
8.1.50.0030.00617.67
8.1.40.0030.00617.64
8.1.30.0000.00817.83
8.1.20.0030.00517.89
8.1.10.0050.00317.64
8.1.00.0040.00417.54
8.0.300.0090.00018.77
8.0.290.0090.00016.88
8.0.280.0040.00418.72
8.0.270.0070.00017.48
8.0.260.0030.00317.39
8.0.250.0000.00817.18
8.0.240.0060.00317.27
8.0.230.0030.00317.16
8.0.220.0050.00317.06
8.0.210.0000.00717.12
8.0.200.0000.00717.11
8.0.190.0050.00317.13
8.0.180.0000.00717.10
8.0.170.0030.00517.05
8.0.160.0080.00017.11
8.0.150.0000.00817.07
8.0.140.0040.00417.05
8.0.130.0030.00313.65
8.0.120.0040.00417.18
8.0.110.0040.00417.15
8.0.100.0030.00617.13
8.0.90.0000.00717.21
8.0.80.0060.01217.24
8.0.70.0070.00017.21
8.0.60.0040.00417.18
8.0.50.0000.00817.10
8.0.30.0160.00317.27
8.0.20.0150.00917.45
8.0.10.0080.00017.27
8.0.00.0120.01217.01
7.4.330.0000.00615.48
7.4.320.0000.00716.81
7.4.300.0060.00016.71
7.4.290.0080.00016.70
7.4.280.0110.00016.71
7.4.270.0000.00716.66
7.4.260.0040.00416.70
7.4.250.0030.00616.84
7.4.240.0050.00316.74
7.4.230.0000.00816.94
7.4.220.0060.01516.80
7.4.210.0120.00516.80
7.4.200.0040.00416.67
7.4.160.0100.00716.79
7.4.150.0070.01117.40
7.4.140.0130.01417.86
7.4.130.0150.00616.87
7.4.120.0120.00716.81
7.4.110.0030.01616.77
7.4.100.0110.01516.95
7.4.90.0070.01116.73
7.4.80.0120.00419.39
7.4.70.0130.00316.89
7.4.60.0100.00716.72
7.4.50.0030.00616.64
7.4.40.0100.00816.55
7.4.30.0160.00316.94
7.4.00.0070.00915.16
7.3.330.0030.00613.51
7.3.320.0000.00613.48
7.3.310.0040.00416.63
7.3.300.0070.00016.53
7.3.290.0030.00516.39
7.3.280.0100.01216.54
7.3.270.0070.01117.40
7.3.260.0140.01416.51
7.3.240.0080.01116.65
7.3.230.0120.00616.66
7.3.210.0060.01316.75
7.3.200.0110.00716.75
7.3.190.0080.01116.68
7.3.180.0120.00616.55
7.3.170.0060.01216.65
7.3.160.0120.00816.59
7.3.120.0100.00914.96
7.3.110.0080.00914.94
7.3.100.0070.01015.09
7.3.90.0060.00914.95
7.3.80.0050.01114.96
7.3.70.0070.00714.99
7.3.60.0100.00514.94
7.3.50.0070.00714.97
7.3.40.0070.00915.02
7.3.30.0070.00814.96
7.3.20.0040.00816.82
7.3.10.0050.00916.84
7.3.00.0090.00716.76
7.2.330.0100.01017.13
7.2.320.0060.01617.13
7.2.310.0090.00916.98
7.2.300.0120.01316.66
7.2.290.0060.01217.00
7.2.250.0100.01015.10
7.2.240.0080.01115.14
7.2.230.0080.00715.18
7.2.220.0050.01215.25
7.2.210.0050.01115.24
7.2.200.0070.00715.17
7.2.190.0060.00815.29
7.2.180.0080.00815.21
7.2.170.0070.00815.26
7.2.160.0020.01014.96
7.2.150.0080.00517.12
7.2.140.0100.00716.96
7.2.130.0050.01017.05
7.2.120.0080.00517.05
7.2.110.0080.00817.05
7.2.100.0080.00817.03
7.2.90.0050.01017.14
7.2.80.0070.00716.90
7.2.70.0070.00817.09
7.2.60.0080.00616.98
7.2.50.0070.00916.99
7.2.40.0080.00717.15
7.2.30.0070.00817.07
7.2.20.0070.00817.08
7.2.10.0070.00617.08
7.2.00.0080.00617.60
7.1.330.0090.00715.79
7.1.320.0060.00815.89
7.1.310.0050.01016.02
7.1.300.0030.00915.78
7.1.290.0050.01015.91
7.1.280.0070.00715.79
7.1.270.0050.00716.00
7.1.260.0060.00716.02
7.1.250.0110.00416.04
7.1.240.0080.00816.01
7.1.230.0120.00316.07
7.1.220.0080.00416.05
7.1.210.0030.01015.97
7.1.200.0110.00416.05
7.1.190.0120.00616.02
7.1.180.0090.00916.12
7.1.170.0070.01015.74
7.1.160.0160.00016.07
7.1.150.0100.00316.02
7.1.140.0030.01015.84
7.1.130.0060.00915.65
7.1.120.0100.00315.88
7.1.110.0060.00316.15
7.1.100.0090.00317.31
7.1.90.0030.01015.95
7.1.80.0030.00915.77
7.1.70.0020.01016.63
7.1.60.0070.01217.71
7.1.50.0120.01525.54
7.1.40.0000.01515.82
7.1.30.0070.00716.01
7.1.20.0000.01215.96
7.1.10.0090.00615.87
7.1.00.0030.04019.29
7.0.330.0100.00615.73
7.0.320.0060.00615.62
7.0.310.0160.00315.64
7.0.300.0100.00315.83
7.0.290.0040.01115.66
7.0.280.0030.01315.65
7.0.270.0090.00615.74
7.0.260.0040.00815.70
7.0.250.0040.01115.41
7.0.240.0000.01215.57
7.0.230.0110.00415.71
7.0.220.0110.00315.80
7.0.210.0000.00815.38
7.0.200.0110.00816.36
7.0.190.0030.00715.66
7.0.180.0030.01215.70
7.0.170.0060.00315.76
7.0.160.0070.01015.70
7.0.150.0060.01215.30
7.0.140.0060.00915.66
7.0.130.0000.01015.85
7.0.120.0030.01415.73
7.0.110.0090.00615.71
7.0.100.0030.01315.54
7.0.90.0130.00315.66
7.0.80.0070.00715.40
7.0.70.0060.00915.38
7.0.60.0030.02718.03
7.0.50.0050.02816.80
7.0.40.0050.04417.13
7.0.30.0160.03917.13
7.0.20.0210.02817.12
7.0.10.0050.05017.13
7.0.00.0050.02417.18
5.6.400.0090.00614.69
5.6.390.0100.00714.81
5.6.380.0120.00414.62
5.6.370.0100.00714.57
5.6.360.0140.00014.67
5.6.350.0100.00714.76
5.6.340.0100.00714.32
5.6.330.0120.00314.67
5.6.320.0150.00314.71
5.6.310.0070.00714.49
5.6.300.0100.00914.45
5.6.290.0070.01114.70
5.6.280.0000.03917.85
5.6.270.0100.01014.59
5.6.260.0100.01014.45
5.6.250.0030.01214.70
5.6.240.0000.01614.53
5.6.230.0070.00714.68
5.6.220.0150.00314.80
5.6.210.0060.02417.71
5.6.200.0060.02516.57
5.6.190.0110.02817.77
5.6.180.1630.02717.57
5.6.170.0150.04417.70
5.6.160.0020.02917.79
5.6.150.0050.04416.53
5.6.140.0070.02716.55
5.6.130.0020.03816.56
5.6.120.0100.04017.96
5.6.110.0100.04017.90
5.6.100.0050.04818.08
5.6.90.0120.03718.00
5.6.80.0060.02317.71
5.6.70.2280.02817.58
5.6.60.0050.00514.52
5.6.50.0060.00614.36
5.6.40.0030.00614.70
5.6.30.0070.01414.24
5.6.20.0070.01014.57
5.6.10.0070.01014.48
5.6.00.0030.01014.59
5.5.380.0070.00714.61
5.5.370.0040.01514.55
5.5.360.0090.00914.53
5.5.350.0070.03817.63
5.5.340.0090.02316.34
5.5.330.0070.03317.63
5.5.320.0150.02817.45
5.5.310.0220.03617.62
5.5.300.0130.03716.44
5.5.290.0060.02516.53
5.5.280.0040.02417.98
5.5.270.0080.03617.88
5.5.260.0050.04917.89
5.5.250.0090.04917.65
5.5.240.0120.02017.58
5.5.230.0080.00314.41
5.5.220.0030.01014.55
5.5.210.0100.00314.31
5.5.200.0040.01514.31
5.5.190.0070.01314.53
5.5.180.0080.00814.46
5.5.170.0030.01014.20
5.5.160.0070.01014.18
5.5.150.0120.00314.31
5.5.140.0040.01514.30
5.5.130.0100.00314.55
5.5.120.0060.00314.31
5.5.110.0060.00614.52
5.5.100.0100.00614.13
5.5.90.0160.00314.19
5.5.80.0100.01014.23
5.5.70.0080.00814.66
5.5.60.0070.00714.44
5.5.50.0060.00614.43
5.5.40.0030.01314.36
5.5.30.0030.01214.46
5.5.20.0060.00914.03
5.5.10.0040.00714.28
5.5.00.0060.00614.39
5.4.450.0120.03615.87
5.4.440.0160.03015.81
5.4.430.0180.02815.77
5.4.420.0150.03015.79
5.4.410.0140.04215.75
5.4.400.0190.02915.68
5.4.390.0210.03015.61
5.4.380.0180.03015.71
5.4.370.0110.03315.70
5.4.360.0130.03515.57
5.4.350.0180.03315.69
5.4.340.0130.03315.71
5.4.330.0080.00411.95
5.4.320.0170.03315.61
5.4.310.0120.03615.67
5.4.300.0130.03215.71
5.4.290.0150.02915.63
5.4.280.0180.03015.70
5.4.270.0150.03115.60
5.4.260.0110.03415.55
5.4.250.0150.03215.62
5.4.240.0150.03015.69
5.4.230.0120.03315.63
5.4.220.0200.03015.71
5.4.210.0180.02615.55
5.4.200.0180.02715.71
5.4.190.0190.03215.56
5.4.180.0080.03315.71
5.4.170.0080.03615.70
5.4.160.0160.02715.70
5.4.150.0160.03015.69
5.4.140.0120.03014.42
5.4.130.0150.03614.34
5.4.120.0080.03514.36
5.4.110.0140.02814.33
5.4.100.0160.02214.25
5.4.90.0070.02714.26
5.4.80.0140.02414.33
5.4.70.0140.02014.45
5.4.60.0260.02514.44
5.4.50.0050.02314.49
5.4.40.0030.01814.44
5.4.30.0000.04014.48
5.4.20.0200.02614.47
5.4.10.0030.01011.95
5.4.00.0080.00311.95

preferences:
45.61 ms | 400 KiB | 5 Q