3v4l.org

run code in 300+ PHP versions simultaneously
<?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 ($user === $input){ echo true; } echo $rootbeer; echo " - "; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Only the first byte will be assigned to the string offset in /in/ROQ9d on line 17 4 Start 9 - 4 - 0 - 0 - 7 - 600 - 8.0E+39 - 0 - 927 - 0 - Warning: Only the first byte will be assigned to the string offset in /in/ROQ9d on line 24 70298593 -
Output for 5.2.2 - 5.2.9, 5.2.12 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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/ROQ9d on line 17 4 Start 9 - 4 - 0 - 0 - 7 - 600 - 8.0E+39 - 0 - 927 - 0 - 70298593 -
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.1
4 Start 9 - 4 - 0 - 0 - 7 - 600 - 8E+39 - 0 - 927 - 0 - 70298593 -

preferences:
233.58 ms | 402 KiB | 341 Q