3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { var $tablename="t_table"; var $connection; public function __construct() { $this->connection = new MySQLi("host", "user", "password", "dbname", "port")or die("Error connecting " . mysqli_error($connection)); } ?>

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)
5.4.290.0230.03319.07
5.4.280.0370.06019.23
5.4.270.0170.06319.23
5.4.260.0270.02718.91
5.4.250.0270.02719.18
5.4.240.0170.03719.12
5.4.230.0270.04019.21
5.4.220.0230.03019.13
5.4.210.0170.04719.16
5.4.200.0130.05319.05
5.4.190.0230.06319.30
5.4.180.0170.04019.20
5.4.170.0200.03719.06
5.4.160.0230.04318.81
5.4.150.0230.05319.20
5.4.140.0130.04716.52
5.4.130.0200.04016.37
5.4.120.0200.03316.36
5.4.110.0170.03716.57
5.4.100.0130.06716.37
5.4.90.0200.03316.55
5.4.80.0170.03316.54
5.4.70.0130.05716.43
5.4.60.0170.04016.48
5.4.50.0230.06316.48
5.4.40.0170.03716.37
5.4.30.0230.03716.52
5.4.20.0170.03716.25
5.4.10.0100.04316.23
5.4.00.0170.04315.94
5.3.280.0270.07314.64
5.3.270.0170.05014.53
5.3.260.0130.04014.63
5.3.250.0170.04014.83
5.3.240.0130.04014.52
5.3.230.0170.04014.60
5.3.220.0230.06014.49
5.3.210.0130.04314.69
5.3.200.0170.03714.79
5.3.190.0100.05714.65
5.3.180.0200.04314.47
5.3.170.0200.04314.57
5.3.160.0300.02714.68
5.3.150.0170.04014.64
5.3.140.0230.03314.46
5.3.130.0230.04714.69
5.3.120.0230.08014.47
5.3.110.0130.04014.55
5.3.100.0230.03014.05
5.3.90.0170.06314.09
5.3.80.0130.04714.10
5.3.70.0070.05014.07
5.3.60.0230.06714.02
5.3.50.0200.06313.95
5.3.40.0170.04713.92
5.3.30.0230.03713.83
5.3.20.0170.03313.61
5.3.10.0170.07013.66
5.3.00.0200.04313.56
5.2.170.0200.03011.67
5.2.160.0130.06711.67
5.2.150.0130.05011.67
5.2.140.0200.04711.67
5.2.130.0170.02711.67
5.2.120.0130.03311.67
5.2.110.0130.03011.67
5.2.100.0230.05711.67
5.2.90.0170.06311.67
5.2.80.0230.05011.67
5.2.70.0170.06011.67
5.2.60.0270.05311.67
5.2.50.0170.06011.67
5.2.40.0170.06011.67
5.2.30.0170.06011.67
5.2.20.0170.05011.67
5.2.10.0130.03311.67
5.2.00.0130.05311.67
5.1.60.0200.04711.67
5.1.50.0170.03311.67
5.1.40.0200.04311.67
5.1.30.0230.04711.67
5.1.20.0170.03311.67
5.1.10.0200.04311.67
5.1.00.0130.05311.67
5.0.50.0170.04011.67
5.0.40.0100.04011.67
5.0.30.0070.06711.67
5.0.20.0070.03011.67
5.0.10.0000.02311.67
5.0.00.0100.04011.67
4.4.90.0130.03311.67
4.4.80.0030.03011.67
4.4.70.0100.01311.67
4.4.60.0070.03711.67
4.4.50.0070.03311.67
4.4.40.0130.03711.67
4.4.30.0070.03011.67
4.4.20.0100.03711.67
4.4.10.0070.03711.67
4.4.00.0000.05011.67
4.3.110.0070.02311.67
4.3.100.0130.03011.67
4.3.90.0070.02711.67
4.3.80.0100.04311.67
4.3.70.0070.03011.67
4.3.60.0070.03011.67
4.3.50.0070.02311.67
4.3.40.0030.04311.67
4.3.30.0030.02011.67
4.3.20.0070.03711.67
4.3.10.0070.02011.67
4.3.00.0000.02011.67

preferences:
140.1 ms | 1394 KiB | 7 Q