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 = 'pancake'; foreach ($users as $user) { if (password_verify($password, $user['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.0000.38216.75
7.2.00.0100.38919.25
7.1.200.0000.38215.94
7.1.100.0030.39017.87
7.1.70.0030.36616.98
7.1.60.0070.42019.46
7.1.50.0100.42116.76
7.1.00.0000.46322.46
7.0.200.0030.36616.69
7.0.140.0100.43321.95
7.0.60.0130.46319.86
7.0.50.0070.40717.90
7.0.40.0200.41020.24
7.0.30.0500.44320.21
7.0.20.0170.40020.21
7.0.10.0230.43320.07
7.0.00.0100.47020.22
5.6.280.0070.45321.12
5.6.210.0030.40020.66
5.6.200.0130.40318.16
5.6.190.0030.41720.46
5.6.180.0330.45020.45
5.6.170.0230.41320.44
5.6.160.0070.40720.42
5.6.150.0100.47718.27
5.6.140.0030.41318.11
5.6.130.0100.46018.17
5.6.120.0200.45721.02
5.6.110.0100.46020.99
5.6.100.0100.43021.08
5.6.90.0100.46021.13
5.6.80.0070.42020.39
5.6.70.0170.45720.37
5.5.350.0030.46320.40
5.5.340.0030.47017.98
5.5.330.0170.47720.30
5.5.320.0170.40320.51
5.5.310.0230.45720.20
5.5.300.0030.41317.97
5.5.290.0070.45718.01
5.5.280.0100.43720.77
5.5.270.0130.45320.67
5.5.260.0030.46720.67
5.5.250.0130.46320.44
5.5.240.0170.46720.26
5.4.450.0100.04719.42
5.4.440.0130.04319.53
5.4.430.0170.02319.25
5.4.420.0170.04019.55
5.4.410.0130.04319.11
5.4.400.0170.02318.81
5.4.390.0130.05019.22
5.4.380.0200.07018.68
5.4.370.0270.05318.50
5.4.360.0300.05318.59
5.4.350.0230.06318.63
5.4.340.0330.05718.66
5.4.320.0030.03912.45
5.4.310.0080.03612.45
5.4.300.0060.03712.45
5.4.290.0060.03812.45
5.4.280.0100.03412.35
5.4.270.0110.03412.35
5.4.260.0070.04012.35
5.4.250.0070.04112.35
5.4.240.0060.04212.35
5.4.230.0060.04112.34
5.4.220.0090.03212.34
5.4.210.0050.03512.34
5.4.200.0070.03512.34
5.4.190.0050.03512.34
5.4.180.0070.03412.34
5.4.170.0100.03612.35
5.4.160.0030.03812.34
5.4.150.0050.03512.34
5.4.140.0050.03712.03
5.4.130.0060.03812.01
5.4.120.0060.03411.97
5.4.110.0070.03511.97
5.4.100.0050.03511.96
5.4.90.0080.03411.97
5.4.80.0080.03311.97
5.4.70.0060.03611.96
5.4.60.0070.03611.96
5.4.50.0060.03511.96
5.4.40.0070.03511.95
5.4.30.0060.03411.95
5.4.20.0040.04111.95
5.4.10.0060.03311.95
5.4.00.0090.03411.44
5.3.290.0080.03512.80
5.3.280.0060.03612.71
5.3.270.0040.04012.72
5.3.260.0040.04612.72
5.3.250.0080.03712.72
5.3.240.0030.03812.72
5.3.230.0080.04212.71
5.3.220.0070.03712.68
5.3.210.0050.03812.68
5.3.200.0070.03312.68
5.3.190.0070.04212.68
5.3.180.0090.03712.67
5.3.170.0090.03612.67
5.3.160.0100.03512.67
5.3.150.0070.03912.67
5.3.140.0050.03712.66
5.3.130.0050.04512.66
5.3.120.0040.03912.66
5.3.110.0060.03712.66
5.3.100.0050.03612.12
5.3.90.0060.03612.08
5.3.80.0080.03512.07
5.3.70.0040.04012.07
5.3.60.0030.03812.07
5.3.50.0060.03512.00
5.3.40.0050.03512.00
5.3.30.0070.03611.95
5.3.20.0060.03511.72
5.3.10.0050.04311.70
5.3.00.0070.03611.68
5.2.170.0030.0319.18
5.2.160.0060.0279.18
5.2.150.0020.0329.18
5.2.140.0040.0309.18
5.2.130.0040.0289.14
5.2.120.0070.0259.14
5.2.110.0050.0329.14
5.2.100.0020.0319.14
5.2.90.0060.0279.14
5.2.80.0050.0299.14
5.2.70.0060.0359.14
5.2.60.0060.0289.09
5.2.50.0040.0319.05
5.2.40.0030.0309.04
5.2.30.0030.0309.01
5.2.20.0050.0289.00
5.2.10.0020.0308.92
5.2.00.0040.0308.79
5.1.60.0040.0238.07
5.1.50.0030.0258.06
5.1.40.0050.0298.05
5.1.30.0040.0318.40
5.1.20.0060.0248.41
5.1.10.0040.0258.14
5.1.00.0050.0238.14
5.0.50.0040.0256.62
5.0.40.0030.0186.48
5.0.30.0020.0336.30
5.0.20.0040.0216.27
5.0.10.0040.0196.23
5.0.00.0010.0326.23
4.4.90.0040.0184.78
4.4.80.0050.0174.75
4.4.70.0030.0154.75
4.4.60.0040.0194.75
4.4.50.0030.0154.77
4.4.40.0040.0234.71
4.4.30.0020.0164.76
4.4.20.0000.0184.84
4.4.10.0020.0164.85
4.4.00.0050.0224.75
4.3.110.0030.0154.67
4.3.100.0030.0174.66
4.3.90.0020.0174.63
4.3.80.0020.0294.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0010.0174.63
4.3.40.0010.0254.54
4.3.30.0040.0143.28
4.3.20.0030.0153.26
4.3.10.0030.0143.22
4.3.00.0000.01714.87

preferences:
34.49 ms | 400 KiB | 5 Q