3v4l.org

run code in 300+ PHP versions simultaneously
<?php $good_mac = hex2bin("0b12ae50aa4be68973372730489521f8cf77972a73b0e8c86fde8d97eaa84f02"); $bad_mac = hex2bin("0b12ae5000000000000000000000000000000000000000000000000000000000"); $hmac_key = random_bytes(32); var_dump( hash_hmac('sha256', $good_mac, $hmac_key), hash_hmac('sha256', $bad_mac, $hmac_key), hash_hmac('sha256', $good_mac, $hmac_key) === hash_hmac('sha256', $bad_mac, $hmac_key), );

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)
5.6.150.0000.04318.18
5.6.140.0100.04018.12
5.6.130.0000.04718.23
5.6.120.0030.05321.12
5.6.110.0100.08321.13
5.6.100.0130.08021.02
5.6.90.0100.05721.02
5.6.80.0130.07320.40
5.5.300.0070.04018.04
5.5.290.0030.07718.08
5.5.280.0000.04720.88
5.5.270.0130.08320.95
5.5.260.0070.07020.75
5.5.250.0070.06320.68
5.5.240.0270.05720.16

preferences:
31.45 ms | 400 KiB | 5 Q