3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Connection { protected $link; private $server, $username, $password, $db; public function __construct($server, $username, $password, $db) { $this->server = $server; $this->username = $username; $this->password = $password; $this->db = $db; $this->connect(); } private function connect() { $this->link = mysql_connect($this->server, $this->username, $this->password); mysql_select_db($this->db, $this->link); } public function __sleep() { return array('server', 'username', 'password', 'db'); } public function __wakeup() { $this->connect(); } } $conect= new Connection(); $conect->_unserialize(); ?>

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.0060.01218.55
8.3.50.0130.01117.37
8.3.40.0000.01418.79
8.3.30.0090.00618.67
8.3.20.0080.00018.85
8.3.10.0000.00820.66
8.3.00.0060.00317.48
8.2.180.0090.00616.59
8.2.170.0110.00422.96
8.2.160.0100.00322.13
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0070.00019.83
8.2.110.0070.00320.94
8.2.100.0070.00417.78
8.2.90.0070.00320.95
8.2.80.0050.00317.80
8.2.70.0000.00817.50
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0040.00419.65
8.2.30.0000.00817.91
8.2.20.0000.00817.67
8.2.10.0040.00417.65
8.2.00.0000.00717.56
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.00622.42
8.1.230.0040.00821.03
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00718.74
8.1.150.0090.00018.54
8.1.140.0060.00317.32
8.1.130.0000.00717.68
8.1.120.0000.00717.34
8.1.110.0040.00417.32
8.1.100.0040.00417.25
8.1.90.0000.00817.38
8.1.80.0050.00317.33
8.1.70.0070.00017.32
8.1.60.0000.00817.57
8.1.50.0040.00417.32
8.1.40.0040.00417.39
8.1.30.0030.00617.52
8.1.20.0000.00817.59
8.1.10.0000.00717.55
8.1.00.0040.00417.43
8.0.300.0050.00219.83
8.0.290.0000.00716.88
8.0.280.0070.00018.39
8.0.270.0030.00317.17
8.0.260.0060.00316.75
8.0.250.0000.00716.86
8.0.240.0030.00616.91
8.0.230.0000.00717.01
8.0.220.0000.00716.82
8.0.210.0000.00716.89
8.0.200.0040.00417.00
8.0.190.0000.00717.00
8.0.180.0050.00316.93
8.0.170.0000.00816.95
8.0.160.0030.00516.81
8.0.150.0000.00816.93
8.0.140.0040.00416.86
8.0.130.0030.00313.29
8.0.120.0040.00416.80
8.0.110.0000.00716.86
8.0.100.0040.00416.85
8.0.90.0070.00016.86
8.0.80.0060.01016.97
8.0.70.0050.00216.97
8.0.60.0040.00416.90
8.0.50.0040.00416.87
8.0.30.0120.00817.05
8.0.20.0070.01117.11
8.0.10.0040.00416.98
8.0.00.0070.01016.81
7.4.330.0030.00314.71
7.4.320.0060.00016.44
7.4.300.0030.00316.55
7.4.290.0030.00316.49
7.4.280.0030.00616.45
7.4.270.0030.00316.48
7.4.260.0000.00613.23
7.4.250.0030.00616.57
7.4.240.0070.00016.40
7.4.230.0030.00316.54
7.4.220.0190.00616.54
7.4.210.0050.01216.52
7.4.200.0000.00716.64
7.4.190.0030.00316.59
7.4.160.0070.01016.59
7.4.150.0030.01417.07
7.4.140.0060.01317.23
7.4.130.0100.00816.47
7.4.120.0080.01016.40
7.4.110.0070.01016.39
7.4.100.0130.00616.39
7.4.90.0130.00916.56
7.4.80.0120.00618.63
7.4.70.0180.00316.35
7.4.60.0130.00716.48
7.4.50.0040.00420.34
7.4.40.0070.01021.69
7.4.30.0030.01216.53
7.4.00.0030.01214.99
7.3.330.0000.00613.30
7.3.320.0000.00513.38
7.3.310.0000.00716.32
7.3.300.0040.00416.24
7.3.290.0080.00616.36
7.3.280.0110.00716.34
7.3.270.0130.00317.07
7.3.260.0070.01318.24
7.3.250.0120.00916.40
7.3.240.0100.00716.51
7.3.230.0130.00416.54
7.3.210.0130.01016.34
7.3.200.0090.00919.39
7.3.190.0100.00716.37
7.3.180.0110.00416.39
7.3.170.0110.00816.46
7.3.160.0130.00316.25
7.3.120.0080.00514.86
7.2.330.0070.01116.49
7.2.320.0130.00316.52
7.2.310.0090.01216.68
7.2.300.0160.00016.55
7.2.290.0080.00816.59
7.2.80.0000.01416.57
7.2.60.0090.00616.87
7.1.200.0060.00915.68
7.1.70.0050.00216.71
7.1.60.0110.01419.40
7.1.50.0030.01316.53
7.1.00.0000.07722.40
7.0.200.0060.00316.84
7.0.140.0100.06722.08
7.0.120.0000.03322.09
7.0.60.0100.08319.92
7.0.50.0070.08017.91
7.0.40.0100.06317.72
7.0.30.0030.08717.82
7.0.20.0170.07017.86
7.0.10.0170.07017.85
7.0.00.0170.07317.84
5.6.280.0070.07021.14
5.6.210.0070.06020.62
5.6.200.0070.08718.28
5.6.190.0170.06318.22
5.6.180.0100.08018.27
5.6.170.0070.08018.19
5.6.160.0100.08018.12
5.6.150.0130.05318.18
5.6.140.0030.08718.18
5.6.130.0000.08718.29
5.6.120.0070.07718.28
5.6.110.0100.03718.24
5.6.100.0030.08318.13
5.6.90.0070.06718.12
5.6.80.0030.06017.61
5.6.70.0100.07317.63
5.6.60.0100.06717.58
5.6.50.0070.07717.62
5.6.40.0070.06017.53
5.6.30.0100.07017.61
5.6.20.0030.06717.63
5.6.10.0030.04317.50
5.6.00.0130.03717.52
5.5.350.0270.07320.42
5.5.340.0070.07717.99
5.5.330.0030.06018.01
5.5.320.0070.08317.93
5.5.310.0170.06318.09
5.5.300.0070.06717.98
5.5.290.0100.04717.94
5.5.280.0100.06717.98
5.5.270.0000.04317.94
5.5.260.0070.06718.07
5.5.250.0100.07317.77
5.5.240.0070.05717.30
5.5.230.0070.07717.37
5.5.220.0070.07717.30
5.5.210.0030.08017.39
5.5.200.0000.05717.36
5.5.190.0030.08017.36
5.5.180.0070.07717.43
5.5.160.0030.05317.39
5.5.150.0070.04717.28
5.5.140.0070.04317.30
5.5.130.0200.05717.33
5.5.120.0030.07017.30
5.5.110.0030.06017.38
5.5.100.0070.03317.19
5.5.90.0070.03317.33
5.5.80.0030.03717.22
5.5.70.0070.04017.31
5.5.60.0030.03717.22
5.5.50.0000.03717.23
5.5.40.0030.03717.19
5.5.30.0070.03317.16
5.5.20.0000.04017.19
5.5.10.0100.03017.32
5.5.00.0000.04317.21
5.4.450.0070.07319.61
5.4.440.0070.04719.36
5.4.430.0030.05719.38
5.4.420.0070.08319.37
5.4.410.0000.05319.34
5.4.400.0100.07019.10
5.4.390.0000.08319.05
5.4.380.0130.06019.03
5.4.370.0070.07319.10
5.4.360.0100.07019.27
5.4.350.0070.08018.89
5.4.340.0070.04719.06
5.4.320.0100.06318.96
5.4.310.0070.05319.05
5.4.300.0100.05719.11
5.4.290.0100.03318.97
5.4.280.0170.06719.05
5.4.270.0130.06718.96
5.4.260.0030.05319.03
5.4.250.0070.03319.04
5.4.240.0030.03719.02
5.4.230.0000.04018.88
5.4.220.0000.04019.04
5.4.210.0030.03719.02
5.4.200.0030.03718.97
5.4.190.0070.03319.14
5.4.180.0030.04719.11
5.4.170.0030.08019.13
5.4.160.0030.04318.87
5.4.150.0000.06719.10
5.4.140.0030.04016.36
5.4.130.0030.04016.30
5.4.120.0070.03016.29
5.4.110.0000.03716.34
5.4.100.0030.03316.41
5.4.90.0000.03716.51
5.4.80.0000.03716.46
5.4.70.0030.03316.47
5.4.60.0000.03716.57
5.4.50.0000.03716.45
5.4.40.0000.04016.47
5.4.30.0000.03716.41
5.4.20.0000.03716.30
5.4.10.0070.03016.35
5.4.00.0030.03315.75
5.3.290.0130.06714.78
5.3.280.0100.03314.64
5.3.270.0030.04714.69
5.3.260.0000.08014.71
5.3.250.0000.04014.66
5.3.240.0100.04014.71
5.3.230.0030.03714.57
5.3.220.0100.04014.54
5.3.210.0030.03714.54
5.3.200.0000.04014.54
5.3.190.0000.04014.43
5.3.180.0100.03314.53
5.3.170.0000.04014.61
5.3.160.0000.04014.42
5.3.150.0000.03714.67
5.3.140.0000.04014.61
5.3.130.0000.04714.59
5.3.120.0030.03714.62
5.3.110.0070.03314.60
5.3.100.0030.03314.09
5.3.90.0030.03313.99
5.3.80.0000.03714.07
5.3.70.0070.03014.05
5.3.60.0000.03713.87
5.3.50.0030.03313.85
5.3.40.0030.03314.16
5.3.30.0030.03313.96
5.3.20.0070.03013.73
5.3.10.0000.03713.55
5.3.00.0000.03713.54
5.2.170.0000.03011.20
5.2.160.0030.02711.15
5.2.150.0030.02711.16
5.2.140.0030.02711.25
5.2.130.0000.03011.08
5.2.120.0070.02311.18
5.2.110.0000.03311.11
5.2.100.0000.04711.00
5.2.90.0070.06011.10
5.2.80.0070.03311.20
5.2.70.0030.04311.16
5.2.60.0100.05710.96
5.2.50.0000.03711.05
5.2.40.0100.03010.89
5.2.30.0030.03011.01
5.2.20.0170.05011.02
5.2.10.0030.06710.91
5.2.00.0030.06010.94
5.1.60.0130.04310.11
5.1.50.0100.04010.09
5.1.40.0030.0279.82
5.1.30.0030.03010.39
5.1.20.0070.05710.32
5.1.10.0030.05010.13
5.1.00.0070.05710.29
5.0.50.0070.0438.59
5.0.40.0030.0478.36
5.0.30.0000.0508.21
5.0.20.0000.0238.23
5.0.10.0030.0308.16
5.0.00.0030.0578.21
4.4.90.0070.0337.80
4.4.80.0000.0207.80
4.4.70.0000.0307.80
4.4.60.0000.0407.80
4.4.50.0000.0307.80
4.4.40.0000.0277.80
4.4.30.0000.0407.80
4.4.20.0000.0377.80
4.4.10.0030.0277.80
4.4.00.0000.0477.80
4.3.110.0070.0177.80
4.3.100.0070.0137.80
4.3.90.0030.0307.80
4.3.80.0030.0507.80
4.3.70.0000.0237.80
4.3.60.0030.0337.80
4.3.50.0000.0307.80
4.3.40.0030.0507.80
4.3.30.0000.0377.80
4.3.20.0070.0337.80
4.3.10.0000.0377.80
4.3.00.0000.0277.80

preferences:
40.3 ms | 401 KiB | 5 Q