3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_uniqids = array( 'numeric' => "\x00"."5425368523947", 'non-numeric' => "\x00"."54253685ed947", 'numeric-append' => "\x00"."5425368523947x" ); foreach ($test_uniqids as $test => $uniqid) { print $test."\t"; print is_numeric($uniqid) ? 'is_numeric' : 'no_numeric'; print "\t"; var_dump($uniqid); $vals = array(); $vals[$uniqid] = TRUE; foreach ($vals as $key => $val) { var_dump($key); if ($key === $uniqid) { print "matches\n"; } else { print "does not match\n"; } } }
Output for git.master, git.master_jit, rfc.property-hooks
numeric no_numeric string(14) "5425368523947" string(14) "5425368523947" matches non-numeric no_numeric string(14) "54253685ed947" string(14) "54253685ed947" matches numeric-append no_numeric string(15) "5425368523947x" string(15) "5425368523947x" matches

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
96.02 ms | 401 KiB | 8 Q