3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = [ 0 => [ 'username' => 'seb', 'password' => password_hash('sebber', PASSWORD_BCRYPT), ], 1 => [ 'username' => 'sebastian', 'password' => password_hash('pancake', PASSWORD_BCRYPT), ], 2 => [ 'username' => 'nicklas', 'password' => password_hash('sunglass', PASSWORD_BCRYPT), ], ]; $password = password_hash('pancake', PASSWORD_BCRYPT); foreach ($users as $user) { if ($user['password'] == $password) { echo "you made it"; } else { echo "fu"; } }

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)
7.2.60.0070.25317.01
7.2.00.0230.25519.47
7.1.200.0030.25716.00
7.1.100.0070.25618.18
7.1.70.0100.24116.87
7.1.60.0100.28519.46
7.1.50.0030.29616.89
7.1.00.0030.35722.28
7.0.200.0030.24816.61
7.0.140.0070.33321.92
7.0.110.0030.28319.91
7.0.100.0000.25320.11
7.0.90.0070.35319.94
7.0.80.0070.31020.00
7.0.70.0100.30319.92
7.0.60.0130.33720.00
7.0.50.0000.32319.98
7.0.40.0100.35319.60
7.0.30.0070.34319.66
7.0.20.0100.33019.78
7.0.10.0070.35719.71
7.0.00.0070.33319.74
5.6.260.0030.28320.64
5.6.250.0070.29320.64
5.6.240.0100.31720.56
5.6.230.0100.33720.63
5.6.220.0070.33720.54
5.6.210.0070.36720.71
5.6.200.0100.24720.58
5.6.190.0030.35720.55
5.6.180.0070.32020.64
5.6.170.0100.32720.64
5.6.160.0100.29320.68
5.6.150.0130.32720.61
5.6.140.0070.33020.84
5.6.130.0070.33320.58
5.6.120.0070.26720.65
5.6.110.0000.34020.61
5.6.100.0200.32020.62
5.6.90.0130.33320.52
5.6.80.0170.31020.08
5.6.70.0330.31320.07
5.6.60.0000.31319.98
5.6.50.0030.28320.02
5.6.40.0000.35719.99
5.6.30.0330.24320.05
5.6.20.0130.34319.99
5.6.10.0070.28320.21
5.6.00.0100.27719.97
5.5.380.0030.24017.58
5.5.370.0030.24717.45
5.5.360.0130.32017.46
5.5.350.0100.35317.40
5.5.340.0070.37018.25
5.5.330.0100.33718.22
5.5.320.0100.36018.23
5.5.310.0000.29018.23
5.5.300.0070.34318.09
5.5.290.0100.32017.76
5.5.280.0070.37318.12
5.5.270.0170.34718.06
5.5.260.0070.28718.12
5.5.250.0100.35317.83
5.5.240.0130.28317.50
5.5.230.0100.33017.50
5.5.220.0030.33317.63
5.5.210.0000.29317.27
5.5.200.0100.34317.62
5.5.190.0170.34017.44
5.5.180.0070.33717.45
5.5.160.0070.33317.59
5.5.150.0030.34317.11
5.5.140.0030.34317.45
5.5.130.0130.34317.59
5.5.120.0030.35317.44
5.5.110.0100.36017.43
5.5.100.0030.28317.32
5.5.90.0030.34017.34
5.5.80.0070.23717.36
5.5.70.0000.35017.46
5.5.60.0070.24017.15
5.5.50.0070.34017.49
5.5.40.0070.32317.11
5.5.30.0070.28017.30
5.5.20.0070.34317.26
5.5.10.0070.24017.49
5.5.00.0000.29017.13
5.4.450.0100.08019.58
5.4.440.0000.09019.33
5.4.430.0070.07319.35
5.4.420.0000.08319.50
5.4.410.0000.04319.14
5.4.400.0030.08319.10
5.4.390.0030.07719.10
5.4.380.0070.07719.18
5.4.370.0070.07019.11
5.4.360.0130.06019.27
5.4.350.0100.07719.28
5.4.340.0070.03019.10
5.4.320.0070.07319.01
5.4.310.0070.07719.00
5.4.300.0100.06019.00
5.4.290.0030.08018.96
5.4.280.0100.06719.07
5.4.270.0070.07319.25
5.4.260.0100.07019.25
5.4.250.0070.02719.11
5.4.240.0170.06719.11
5.4.230.0000.03719.11
5.4.220.0100.06318.95
5.4.210.0030.07319.27
5.4.200.0070.07719.01
5.4.190.0100.07018.98
5.4.180.0070.04019.11
5.4.170.0100.07719.11
5.4.160.0030.04018.96
5.4.150.0100.07318.93
5.4.140.0030.03016.36
5.4.130.0170.06016.22
5.4.120.0070.07016.56
5.4.110.0100.06316.38
5.4.100.0070.07016.56
5.4.90.0070.04316.13
5.4.80.0170.05716.47
5.4.70.0100.06716.27
5.4.60.0000.08016.39
5.4.50.0030.07716.49
5.4.40.0030.07716.55
5.4.30.0100.05716.25
5.4.20.0000.04716.37
5.4.10.0100.07316.45
5.4.00.0030.08015.63
5.3.290.0100.05014.61
5.3.280.0070.03714.49
5.3.270.0000.04014.56
5.3.260.0070.08014.43
5.3.250.0030.03714.50
5.3.240.0130.07314.60
5.3.230.0070.08014.43
5.3.220.0030.07714.51
5.3.210.0100.07014.64
5.3.200.0030.08014.51
5.3.190.0100.07014.49
5.3.180.0070.05714.45
5.3.170.0100.05714.66
5.3.160.0170.06714.39
5.3.150.0100.07014.41
5.3.140.0030.08014.66
5.3.130.0100.06714.41
5.3.120.0000.07014.57
5.3.110.0000.05314.61
5.3.100.0200.06314.07
5.3.90.0100.03713.89
5.3.80.0070.07013.80
5.3.70.0100.06713.95
5.3.60.0070.07313.94
5.3.50.0130.06313.79
5.3.40.0030.07713.77
5.3.30.0100.06713.92
5.3.20.0070.03013.59
5.3.10.0030.07313.54
5.3.00.0030.06313.42
5.2.170.0070.03311.88
5.2.160.0100.03311.88
5.2.150.0130.05711.88
5.2.140.0000.03711.88
5.2.130.0000.03711.88
5.2.120.0030.06311.88
5.2.110.0030.03711.88
5.2.100.0030.05011.88
5.2.90.0070.04011.88
5.2.80.0070.06011.88
5.2.70.0070.05011.88
5.2.60.0030.06311.88
5.2.50.0030.05311.88
5.2.40.0030.05711.88
5.2.30.0000.03011.88
5.2.20.0000.05711.88
5.2.10.0070.06011.88
5.2.00.0070.06011.88
5.1.60.0070.03011.88
5.1.50.0100.04011.88
5.1.40.0000.06011.88
5.1.30.0030.04711.88
5.1.20.0000.05311.88
5.1.10.0030.06011.88
5.1.00.0030.03711.88
5.0.50.0030.02711.88
5.0.40.0030.03711.88
5.0.30.0030.05711.88
5.0.20.0000.04011.88
5.0.10.0070.04311.88
5.0.00.0030.06311.88
4.4.90.0000.03711.88
4.4.80.0070.03011.88
4.4.70.0000.03711.88
4.4.60.0030.02311.88
4.4.50.0070.03011.88
4.4.40.0030.05311.88
4.4.30.0000.03011.88
4.4.20.0000.02011.88
4.4.10.0130.02011.88
4.4.00.0000.05711.88
4.3.110.0030.02011.88
4.3.100.0000.02011.88
4.3.90.0070.03711.88
4.3.80.0030.05311.88
4.3.70.0100.02711.88
4.3.60.0000.03711.88
4.3.50.0000.03711.88
4.3.40.0030.05311.88
4.3.30.0030.03311.88
4.3.20.0000.03711.88
4.3.10.0030.03711.88
4.3.00.0000.03011.88

preferences:
36.51 ms | 400 KiB | 5 Q