3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $users = array( "0:9b5c3d2b64b8f74e56edec71462bd97a" , "1:4eb5fb1501102508a86971773849d266", "2:facabd94d57fc9f1e655ef9ce891e86e", "3:ce3924f011fe323df3a6a95222b0c909", "4:7f6618422e6a7ca2e939bd83abde402c", "5:06e2b745f3124f7d670f78eabaa94809", "6:8e39a6e40900bb0824a8e150c0d0d59f", "7:d035e1a80bbb377ce1edce42728849f2", "8:0927d64a71a9d0078c274fc5f4f10821", "9:e2e23d64a642ee82c7a270c6c76df142", "10:70298593dd7ada576aff61b6750b9118" ); $input = "0"; $input[1] = md5("9"); echo $input[1]; echo " Start "; foreach ($users as $user) { $user = explode(":", $user); $input[0] = $user[0]; $rootbeer = (float) $user[1]; if ($input === $user){ echo true; } echo $rootbeer; echo " - "; } ?>
based on ROQ9d
Output for 5.2.2 - 5.2.9, 5.2.12 - 7.2.0
4 Start 9 - 4 - 0 - 0 - 7 - 600 - 8.0E+39 - 0 - 927 - 0 - 70298593 -
Output for 5.2.10 - 5.2.11
Notice: Uninitialized string offset: 1 in /in/dRO7X on line 17 4 Start 9 - 4 - 0 - 0 - 7 - 600 - 8.0E+39 - 0 - 927 - 0 - 70298593 -
Output for 4.3.0 - 5.2.1
4 Start 9 - 4 - 0 - 0 - 7 - 600 - 8E+39 - 0 - 927 - 0 - 70298593 -