3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start_time = microtime(TRUE); $data = hash('sha256', 'https://laundrapp.com'); $outstring = ''; $l = strlen($data); for ($i = 0; $i < $l; $i += 8) { $chunk = substr($data, $i, 8); $outlen = ceil((strlen($chunk) * 8)/6); //8bit/char in, 6bits/char out, round up $x = bin2hex($chunk); //gmp won't convert from binary, so go via hex $w = gmp_strval(gmp_init(ltrim($x, '0'), 16), 62); //gmp doesn't like leading 0s $pad = str_pad($w, $outlen, '0', STR_PAD_LEFT); $outstring .= $pad; } $end_time = microtime(TRUE); echo $end_time - $start_time; echo '\n LOOOL \n'; echo $outstring;
based on eZT90
Output for 7.2.6
6.8187713623047E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.2.0
4.6014785766602E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.10
7.6055526733398E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.7
0.0025551319122314\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.6
0.0038869380950928\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.5
9.7036361694336E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.4
0.0073990821838379\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.3
0.00011706352233887\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.2
0.00011301040649414\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.1
0.0044689178466797\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.1.0
0.00010895729064941\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.20
0.0022799968719482\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.19
0.00095915794372559\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.18
0.003507137298584\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.17
0.0034301280975342\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.16
0.0032210350036621\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.15
0.0061240196228027\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.14
0.0028109550476074\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.13
0.0010581016540527\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.12
0.0039570331573486\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.11
0.0023469924926758\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.10
0.0025920867919922\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.9
0.003004789352417\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.8
0.001884937286377\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.7
0.011770963668823\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.6
0.020823955535889\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.5
0.001539945602417\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.4
0.014338970184326\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.3
0.012408018112183\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.2
0.00010514259338379\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.1
0.00010013580322266\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 7.0.0
0.00010800361633301\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for hhvm-3.15.4
0.0003662109375\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.30
0.00011014938354492\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.29
0.00012683868408203\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.28
0.00013113021850586\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.27
0.00012707710266113\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.26
0.00012087821960449\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.25
0.00014400482177734\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.24
0.00010108947753906\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.7, 5.6.23
0.0001220703125\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.22
0.00012493133544922\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.21
0.00010204315185547\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.20
0.00011992454528809\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.19
0.00012803077697754\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.18
9.608268737793E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.17
0.00011801719665527\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.16
0.00013494491577148\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.15
0.00014114379882812\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.14
0.0001530647277832\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.1, 5.6.13
9.7990036010742E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.12
0.00012397766113281\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.11
9.6797943115234E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.10
0.00012588500976562\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.9
0.00014901161193848\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.8
0.00013422966003418\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.6
9.8943710327148E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.5
9.2983245849609E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.4
0.00013995170593262\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.3
9.5129013061523E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.2
8.8930130004883E-5\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P
Output for 5.6.0
0.00011086463928223\n LOOOL \n4KHDOUFr25W4Z8z1zW70pV4OTOBhui6lu8m1pKdGO6128m5uXo6RujK4TwRCoypqTd4ObNMsn8oxL8WAAHForX8P