3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __construct(?array $config = null, \mysqli $connection = null) { if ($connection !== null && !($connection instanceof \mysqli)) { throw new \InvalidArgumentException( "Invalid mysqli connection object passed. Instance of 'mysqli' expected, '" . gettype($connection) . "' given." ); } } __construct(null, "bogus");

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.4.130.0100.00818.11
8.4.120.0110.00924.21
8.4.110.0070.00322.44
8.4.100.0140.00817.91
8.4.90.0080.00518.78
8.4.80.0110.01017.85
8.4.70.0060.00317.76
8.4.60.0120.00918.79
8.4.50.0090.01020.48
8.4.40.0110.01117.79
8.4.30.0100.01020.73
8.4.20.0130.00717.83
8.4.10.0130.00721.91
8.3.260.0120.00616.45
8.3.250.0080.01018.91
8.3.240.0130.00417.01
8.3.230.0090.00916.86
8.3.220.0080.00616.96
8.3.210.0060.00918.50
8.3.200.0060.00316.79
8.3.190.0080.01017.01
8.3.180.0130.00616.51
8.3.170.0040.01116.88
8.3.160.0120.00620.69
8.3.150.0130.00618.97
8.3.140.0070.00717.07
8.3.130.0000.00818.52
8.3.120.0050.00319.11
8.3.110.0160.00018.59
8.3.100.0000.00924.06
8.3.90.0100.00026.77
8.3.80.0100.00018.56
8.3.70.0120.00618.39
8.3.60.0160.00618.65
8.3.50.0070.01116.72
8.3.40.0070.01321.95
8.3.30.0060.01319.04
8.3.20.0100.00724.18
8.3.10.0150.00424.66
8.3.00.0120.00626.16
8.2.290.0100.00620.47
8.2.280.0110.00918.46
8.2.270.0060.01317.05
8.2.260.0040.00416.64
8.2.250.0000.00816.45
8.2.240.0040.00419.17
8.2.230.0030.00620.94
8.2.220.0060.00337.54
8.2.210.0160.00326.77
8.2.200.0040.00416.75
8.2.190.0070.00716.63
8.2.180.0180.00416.63
8.2.170.0130.01018.82
8.2.160.0110.01122.96
8.2.150.0060.01325.66
8.2.140.0120.00624.66
8.2.130.0080.00021.12
8.2.120.0080.00026.16
8.2.110.0150.00622.27
8.2.100.0070.00417.91
8.2.90.0360.00017.21
8.2.80.0310.00017.13
8.2.70.0260.00417.38
8.2.60.0250.00617.38
8.2.50.0250.00617.25
8.2.40.0200.00617.38
8.2.30.0210.01117.50
8.2.20.0190.00817.38
8.2.10.0200.00717.13
8.2.00.0260.00017.13
8.1.330.0140.00321.91
8.1.320.0130.00616.09
8.1.310.0070.01018.68
8.1.300.0090.00317.96
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0000.00824.66
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00322.54
8.1.230.0040.00820.91
8.1.220.0240.00517.23
8.1.210.0290.00016.88
8.1.200.0240.00417.00
8.1.190.0270.00516.87
8.1.180.0230.00417.22
8.1.170.0220.00416.86
8.1.160.0190.00617.00
8.1.150.0210.00617.11
8.1.140.0270.00017.10
8.1.130.0170.00917.13
8.1.120.0290.00017.00
8.1.110.0220.00417.13
8.1.100.0190.00816.88
8.1.90.0220.00417.23
8.1.80.0210.00517.13
8.1.70.0200.00817.00
8.1.60.0190.00717.13
8.1.50.0170.01116.98
8.1.40.0180.01017.25
8.1.30.0300.00417.38
8.1.20.0320.00017.36
8.1.10.0170.01017.13
8.1.00.0190.00917.13
8.0.300.0230.00316.63
8.0.290.0190.00716.63
8.0.280.0180.00716.55
8.0.270.0170.00816.55
8.0.260.0200.00616.55
8.0.250.0210.00616.55
8.0.240.0240.00316.55
8.0.230.0270.00016.55
8.0.220.0290.00016.55
8.0.210.0270.00316.55
8.0.200.0140.01416.55
8.0.190.0270.00316.55
8.0.180.0290.00016.75
8.0.170.0260.00216.75
8.0.160.0270.00016.88
8.0.150.0270.00016.63
8.0.140.0240.00316.63
8.0.130.0260.00316.55
8.0.120.0260.00016.55
8.0.110.0210.00316.62
8.0.100.0260.00016.55
8.0.90.0260.00016.55
8.0.80.0170.00916.55
8.0.70.0170.00916.55
8.0.60.0210.00316.55
8.0.50.0080.00316.75
8.0.30.0140.01016.55
8.0.20.0300.00016.86
8.0.10.0230.00416.55

preferences:
27.34 ms | 403 KiB | 5 Q