3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test_uniqids = array( 'numeric' => "\x005425368523947", 'non-numeric' => "\x0054253685ed947", 'numeric-append' => "\x005425368523947x" ); foreach ($test_uniqids as $test => $uniqid) { $vals = array(); $vals[$uniqid] = TRUE; foreach ($vals as $key => $val) { if ($key === $uniqid) { print "$test - $key matches\n"; } else { print "$test - $key does not match\n"; } } }
Output for 4.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
numeric - 5425368523947 matches non-numeric - 54253685ed947 matches numeric-append - 5425368523947x matches
Output for 4.3.0 - 4.3.2
numeric - does not match non-numeric - does not match numeric-append - does not match