3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flag = "flag{abc}"; $c="a"; $h2 = password_hash (sha1($c, fa1se), PASSWORD_BCRYPT); echo "<div class='row'>"; if (password_verify (sha1($flag, fa1se), $h2) === true) { echo "<p>Here is your flag: <mark>$flag</mark></p>"; } else { echo "<p>Here is the <em>hash</em> of your flag: <mark>" . sha1($flag, false) . "</mark></p>"; } echo "</div>"; ?>

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.4.00.0070.13314.90
7.3.120.0030.14114.71
7.3.110.0120.12814.99
7.3.100.0000.14014.81
7.3.90.0100.12514.65
7.3.80.0000.13314.95
7.3.70.0070.13814.77
7.3.60.0070.12314.75
7.3.50.0160.12214.59
7.3.40.0030.13014.85
7.3.30.0070.13114.60
7.3.20.0070.12816.67
7.3.10.0100.12616.71
7.3.00.0000.14116.57
7.2.250.0030.14314.82
7.2.240.0070.13615.30
7.2.230.0070.13315.10
7.2.220.0030.13014.91
7.2.210.0070.13914.74
7.2.200.0070.13314.89
7.2.190.0130.12414.93
7.2.180.0030.13814.73
7.2.170.0030.13315.02
7.2.60.0030.13116.79
7.1.330.0030.12915.66
7.1.320.0000.13315.84
7.1.310.0100.12815.66
7.1.300.0070.13515.70
7.1.290.0100.12815.58
7.1.280.0000.13815.93
7.1.270.0030.12815.46
7.1.260.0030.13015.55
7.1.200.0030.12815.70
7.1.100.0950.19016.20
7.1.90.1870.19115.85
7.1.80.0100.19316.07
7.1.70.0070.18615.42
7.1.60.2320.18932.88
7.1.50.3230.20332.84
7.1.40.0360.18232.43
7.1.30.0370.18432.45
7.1.20.0170.19132.70
7.1.10.2210.18614.69
7.1.00.0100.18214.91
7.0.240.0260.20115.45
7.0.230.1510.18715.56
7.0.220.0130.17515.77
7.0.210.1590.18214.94
7.0.200.2410.18415.07
7.0.190.2670.19714.70
7.0.180.2350.18714.36
7.0.170.0500.17114.21
7.0.160.0000.19014.20
7.0.150.0100.20114.45
7.0.140.2060.19614.39
7.0.130.2550.19614.65
7.0.120.1790.19614.61
7.0.110.0700.18014.45
7.0.100.0170.17314.29
7.0.90.0200.18714.42
7.0.80.1880.18214.40
7.0.70.0100.18614.41
7.0.60.2590.17614.37
7.0.50.1800.18414.62
7.0.40.0160.19414.44
7.0.30.0130.18314.50
7.0.20.0170.17914.57
7.0.10.0550.18314.48
7.0.00.1940.17814.57

preferences:
29.53 ms | 400 KiB | 5 Q