3v4l.org

run code in 500+ PHP versions simultaneously
<?php $pw = "\x00\x30"; $hash = password_hash($pw, PASSWORD_DEFAULT); assert(password_verify(password: 'wrong', hash: $hash) === false, 'Incorect password should not verify'); assert(password_verify(password: '', hash: $hash) === false, 'Blank password should not verify'); assert(password_verify(password: $pw, hash: $hash) === true, 'Correct password should verify'); assert(password_verify(password: strrev($pw), hash: $hash) === false, 'Reversed correct password not should verify');

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.70.0420.00918.14
8.4.60.0370.00718.14
8.4.50.0240.00918.14
8.4.40.0230.00618.14
8.4.30.0390.00718.14
8.4.20.0360.00818.14
8.4.10.0310.00718.14
8.3.210.0300.00718.14
8.3.200.0290.00418.14
8.3.190.0240.00618.14
8.3.180.0350.00618.14
8.3.170.0390.00618.14
8.3.160.0260.00718.14
8.3.150.0200.00418.14
8.3.140.0180.00518.14
8.3.130.0250.00218.14
8.3.120.0260.01018.14
8.3.110.0280.01018.14
8.3.100.0320.00618.18
8.3.90.0320.00817.59
8.3.80.0300.00822.91
8.3.70.0270.00817.29
8.3.60.0320.01023.81
8.3.50.0200.00722.83
8.3.40.0210.24924.47
8.3.30.0240.25822.67
8.3.20.0240.26022.98
8.3.10.0220.25822.99
8.3.00.0220.25223.70
8.2.280.0230.00418.14
8.2.270.0300.00718.14
8.2.260.0360.01118.14
8.2.250.0260.00718.14
8.2.240.0160.00518.14
8.2.230.0160.00518.14
8.2.220.0120.00418.26
8.2.210.0160.00717.59
8.2.200.0240.00517.72
8.2.190.0220.00817.30
8.2.180.0260.00722.68
8.2.170.0280.26422.53
8.2.160.0290.25822.75
8.2.150.0280.25522.48
8.2.140.0280.26222.81
8.2.130.0300.25522.74
8.2.120.0260.25722.74
8.2.110.0280.25722.61
8.2.100.0240.25822.51
8.2.90.0250.26022.50
8.2.80.0250.26022.50
8.2.70.0240.25522.59
8.2.60.0250.25822.46
8.2.50.0280.26322.58
8.2.40.0250.26122.48
8.2.30.0240.25722.44
8.2.20.0220.26122.42
8.2.10.0210.25722.47
8.2.00.0210.25522.45
8.1.320.0140.00618.14
8.1.310.0360.01018.14
8.1.300.0270.00418.14
8.1.290.0180.00617.51
8.1.280.0190.00921.99
8.1.270.0260.26521.93
8.1.260.0230.24522.08
8.1.250.0240.26022.67
8.1.240.0240.25522.39
8.1.230.0190.25722.53
8.1.220.0220.25822.67
8.1.210.0250.25922.49
8.1.200.0250.25722.54
8.1.190.0210.26422.50
8.1.180.0230.25522.63
8.1.170.0220.25922.38
8.1.160.0220.26122.49
8.1.150.0240.25822.54
8.1.140.0210.26222.64
8.1.130.0210.25922.55
8.1.120.0210.25722.39
8.1.110.0210.25622.67
8.1.100.0180.26322.62
8.1.90.0220.25922.37
8.1.80.0190.25722.60
8.1.70.0200.26022.66
8.1.60.0220.25622.70
8.1.50.0230.25722.66
8.1.40.0220.25522.68
8.1.30.0230.25722.63
8.1.20.0230.26122.65
8.1.10.0220.25822.71
8.1.00.0220.25622.65
8.0.00.0280.16716.59

preferences:
61.75 ms | 888 KiB | 5 Q