3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mysqli = new mysqli('localhost', 'user', 'password', 'test'); function a(&$a,&$b,&$c) { $a = 3; var_dump($a); } $foo = [1, 2, 3]; $bar = [3, 4, 5]; $stmt = $mysqli->prepare("SELECT ?,?,?"); // What's the difference between this $stmt->bind_param('sss', $foo[0],$foo[1],$foo[2]); // and this a($foo[0],$foo[1],$foo[2]); $diff = array_diff($foo, $bar); $foo[1] = 'hi'; var_dump($foo, $diff);

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.0120.00616.50
8.3.50.0160.00416.59
8.3.40.0200.00018.87
8.3.30.0120.00618.58
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.180.0070.00725.92
8.2.170.0130.00318.79
8.2.160.0030.01022.96
8.2.150.0050.00325.66
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00419.77
8.2.110.0060.00322.29
8.2.100.0060.00617.72
8.2.90.0000.00919.27
8.2.80.0070.00019.28
8.2.70.0000.00817.50
8.2.60.0110.00017.87
8.2.50.0000.00818.05
8.2.40.0070.00317.99
8.2.30.0040.00418.11
8.2.20.0000.00718.05
8.2.10.0050.00219.23
8.2.00.0000.00819.16
8.1.280.0110.00725.92
8.1.270.0040.00424.02
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0000.01219.10
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0040.00717.23
8.1.190.0080.00017.10
8.1.180.0030.00618.10
8.1.170.0040.00418.59
8.1.160.0000.00818.95
8.1.150.0000.00918.67
8.1.140.0040.00418.77
8.1.130.0000.00820.07
8.1.120.0000.01117.25
8.1.110.0040.00417.21
8.1.100.0050.00317.25
8.1.90.0000.00717.23
8.1.80.0000.00717.36
8.1.70.0000.00717.23
8.1.60.0000.00817.46
8.1.50.0040.00417.49
8.1.40.0030.00617.28
8.1.30.0050.00317.57
8.1.20.0000.00817.54
8.1.10.0000.00717.53
8.1.00.0000.00817.39
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00818.37
8.0.270.0080.00017.96
8.0.260.0070.00018.37
8.0.250.0000.00716.95
8.0.240.0030.00616.85
8.0.230.0000.00716.86
8.0.220.0050.00316.88
8.0.210.0000.00616.78
8.0.200.0000.00616.93
8.0.190.0030.00516.90
8.0.180.0040.00416.92
8.0.170.0000.00816.84
8.0.160.0070.00016.88
8.0.150.0070.00016.80
8.0.140.0040.00416.74
8.0.130.0060.00013.29
8.0.120.0040.00416.75
8.0.110.0030.00516.79
8.0.100.0030.00516.79
8.0.90.0030.00517.01
8.0.80.0070.01016.89
8.0.70.0090.00016.79
8.0.60.0030.00616.71
8.0.50.0080.00016.74
8.0.30.0100.00616.88
8.0.20.0080.00816.93
8.0.10.0080.00816.98
8.0.00.0130.00316.97
7.4.330.0040.00015.55
7.4.320.0030.00316.48
7.4.300.0030.00316.43
7.4.290.0030.00316.25
7.4.280.0050.00316.50
7.4.270.0050.00216.44
7.4.260.0000.00716.34
7.4.250.0040.00416.50
7.4.240.0030.00316.54
7.4.230.0080.00016.28
7.4.220.0040.00316.50
7.4.210.0040.01516.44
7.4.200.0000.00716.54
7.4.160.0110.00316.52
7.4.150.0090.00616.36
7.4.140.0110.00616.47
7.4.130.0090.00616.41
7.4.120.0080.00816.46
7.4.110.0130.00616.56
7.4.100.0140.00416.43
7.4.90.0070.01316.43
7.4.80.0150.00016.44
7.4.70.0000.01416.48
7.4.60.0110.00316.36
7.4.50.0040.01016.44
7.4.40.0130.00016.27
7.4.30.0030.01716.43
7.4.20.0110.00316.31
7.4.10.0060.00916.36
7.4.00.0040.01116.36
7.3.330.0070.00016.25
7.3.320.0000.00613.16
7.3.310.0070.00016.19
7.3.300.0030.00316.30
7.3.290.0070.01116.25
7.3.280.0140.00016.29
7.3.270.0100.00316.27
7.3.260.0070.00716.29
7.3.250.0100.00316.28
7.3.240.0080.00616.22
7.3.230.0060.01216.30
7.3.220.0110.00716.23
7.3.210.0110.00716.24
7.3.200.0100.01016.23
7.3.190.0070.00716.23
7.3.180.0090.00616.24
7.3.170.0100.00316.24
7.3.160.0180.00316.28
7.3.150.0070.01416.24
7.3.140.0070.00916.24
7.3.130.0070.00716.25
7.3.120.0060.00916.28
7.3.110.0070.00816.16
7.3.100.0150.00016.20
7.3.90.0070.00716.55
7.3.80.0100.00316.21
7.3.70.0100.00316.29
7.3.60.0100.00316.36
7.3.50.0030.01016.39
7.3.40.0050.01016.32
7.3.30.0070.00716.33
7.3.20.0030.01216.40
7.3.10.0110.00316.26
7.3.00.0120.00316.33

preferences:
57.04 ms | 400 KiB | 5 Q