3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mykey = uniqid("\x00"); $mykey = preg_replace('/[a-zA-Z]/', "4", $mykey); var_dump($mykey); $var[$mykey] = TRUE; foreach($var as $key => $val) { if ($key === $mykey) { echo 'You got it right'; } else { echo 'You got it wrong'; } }
based on oYWbe
Output for 5.4.17, 5.4.25 - 5.4.27, 5.4.34, 5.4.38, 5.5.0, 5.5.16, 5.5.19, 5.6.8, 5.6.13, 5.6.21, 7.0.2, 7.0.6 - 7.0.9, 7.1.0
string(13) "5425494400444" You got it wrong
Output for 5.4.20, 5.4.29, 5.5.11, 7.0.14
string(13) "5425494400445" You got it wrong
Output for 7.0.10
string(13) "5425494401268" You got it wrong
Output for 5.4.15, 7.0.5
string(13) "5425494400452" You got it wrong
Output for 7.0.4
string(13) "5425494400427" You got it wrong
Output for 7.0.3
string(13) "5425494400492" You got it wrong
Output for 5.4.23, 5.5.10, 7.0.1
string(13) "5425494400449" You got it wrong
Output for 7.0.0
string(13) "5425494400429" You got it wrong
Output for hhvm-3.12.0
string(13) "5425494424349" You got it wrong
Output for hhvm-3.10.0
string(13) "5425494424146" You got it wrong
Output for 5.6.28
string(13) "5425494401211" You got it wrong
Output for 5.6.25
string(13) "5425494401142" You got it wrong
Output for 5.6.24
string(13) "5425494401194" You got it wrong
Output for 5.5.2, 5.5.14, 5.6.23
string(13) "5425494401164" You got it wrong
Output for 5.5.20, 5.6.15, 5.6.22
string(13) "5425494401244" You got it wrong
Output for 5.6.20
string(13) "5425494401281" You got it wrong
Output for 5.6.19
string(13) "5425494401365" You got it wrong
Output for 5.6.18
string(13) "5425494401262" You got it wrong
Output for 5.6.11, 5.6.17
string(13) "5425494400463" You got it wrong
Output for 5.6.16
string(13) "5425494400440" You got it wrong
Output for 5.5.5, 5.6.14
string(13) "5425494401224" You got it wrong
Output for 5.6.12
string(13) "5425494401046" You got it wrong
Output for 5.5.1, 5.6.5, 5.6.10
string(13) "5425494401214" You got it wrong
Output for 5.6.9
string(13) "5425494401833" You got it wrong
Output for 5.5.37, 5.6.7
string(13) "5425494401024" You got it wrong
Output for 5.6.6
string(13) "5425494401114" You got it wrong
Output for 5.5.30, 5.6.4
string(13) "5425494400443" You got it wrong
Output for 5.6.3
string(13) "5425494400448" You got it wrong
Output for 5.6.2
string(13) "5425494401222" You got it wrong
Output for 5.4.21, 5.5.26, 5.6.1
string(13) "5425494400474" You got it wrong
Output for 5.5.8, 5.6.0
string(13) "5425494401271" You got it wrong
Output for 5.5.38
string(13) "5425494401229" You got it wrong
Output for 5.5.36
string(13) "5425494400414" You got it wrong
Output for 5.5.35
string(13) "5425494401200" You got it wrong
Output for 5.4.41, 5.5.34
string(13) "5425494400481" You got it wrong
Output for 5.5.33
string(13) "5425494401238" You got it wrong
Output for 5.5.32
string(13) "5425494401043" You got it wrong
Output for 5.5.31
string(13) "5425494401242" You got it wrong
Output for 5.4.31, 5.5.29
string(13) "5425494400464" You got it wrong
Output for 5.5.28
string(13) "5425494401144" You got it wrong
Output for 5.5.27
string(13) "5425494401049" You got it wrong
Output for 5.5.25
string(13) "5425494401014" You got it wrong
Output for 5.5.24
string(13) "5425494401154" You got it wrong
Output for 5.5.23
string(13) "5425494400428" You got it wrong
Output for 5.4.35, 5.5.22
string(13) "5425494400441" You got it wrong
Output for 5.5.21
string(13) "5425494401071" You got it wrong
Output for 5.5.18
string(13) "5425494401265" You got it wrong
Output for 5.5.13, 5.5.15
string(13) "5425494401044" You got it wrong
Output for 5.5.12
string(13) "5425494401095" You got it wrong
Output for 5.5.9
string(13) "5425494401124" You got it wrong
Output for 5.5.7
string(13) "5425494401204" You got it wrong
Output for 5.5.6
string(13) "5425494401141" You got it wrong
Output for 5.5.4
string(13) "5425494400498" You got it wrong
Output for 5.5.3
string(13) "5425494401140" You got it wrong
Output for 5.4.19, 5.4.45
string(13) "5425494400447" You got it wrong
Output for 5.4.28, 5.4.44
string(13) "5425494400494" You got it wrong
Output for 5.4.43
string(13) "5425494400400" You got it wrong
Output for 5.4.42
string(13) "5425494400458" You got it wrong
Output for 5.4.40
string(13) "5425494400408" You got it wrong
Output for 5.4.39
string(13) "5425494400404" You got it wrong
Output for 5.4.37
string(13) "5425494400490" You got it wrong
Output for 5.4.36
string(13) "5425494401004" You got it wrong
Output for 5.4.32
string(13) "5425494400446" You got it wrong
Output for 5.4.30
string(13) "5425494400471" You got it wrong
Output for 5.4.24
string(13) "5425494400409" You got it wrong
Output for 5.2.12, 5.4.22
string(13) "5425494400442" You got it wrong
Output for 5.4.18
string(13) "5425494400491" You got it wrong
Output for 5.4.16
string(13) "5425494401035" You got it wrong
Output for 5.4.14
string(13) "5425494400796" You got it wrong
Output for 5.4.13
string(13) "5425494400642" You got it wrong
Output for 5.4.12
string(13) "5425494400889" You got it wrong
Output for 5.4.11
string(13) "5425494400841" You got it wrong
Output for 5.3.3, 5.3.5, 5.3.20, 5.3.22, 5.4.10
string(13) "5425494400844" You got it wrong
Output for 5.4.9
string(13) "5425494400864" You got it wrong
Output for 5.2.4, 5.2.13, 5.4.8
string(13) "5425494400744" You got it wrong
Output for 5.4.7
string(13) "5425494400774" You got it wrong
Output for 5.4.6
string(13) "5425494400747" You got it wrong
Output for 5.2.11, 5.4.5
string(13) "5425494400646" You got it wrong
Output for 5.4.4
string(13) "5425494400780" You got it wrong
Output for 5.4.3
string(13) "5425494400804" You got it wrong
Output for 5.3.29, 5.4.2
string(13) "5425494400748" You got it wrong
Output for 5.4.1
string(13) "5425494400867" You got it wrong
Output for 5.4.0
string(13) "5425494400824" You got it wrong
Output for 5.3.28
string(13) "5425494400790" You got it wrong
Output for 5.3.27
string(13) "5425494400896" You got it wrong
Output for 5.3.26
string(13) "5425494400954" You got it wrong
Output for 5.3.25
string(13) "5425494400932" You got it wrong
Output for 5.3.24
string(13) "5425494400904" You got it wrong
Output for 5.3.7, 5.3.23
string(13) "5425494400924" You got it wrong
Output for 5.3.21
string(13) "5425494400868" You got it wrong
Output for 5.3.19
string(13) "5425494400833" You got it wrong
Output for 5.3.18
string(13) "5425494400848" You got it wrong
Output for 5.3.17
string(13) "5425494400743" You got it wrong
Output for 5.3.16
string(13) "5425494400900" You got it wrong
Output for 5.3.15
string(13) "5425494400852" You got it wrong
Output for 5.3.14
string(13) "5425494400992" You got it wrong
Output for 5.3.13
string(13) "5425494400834" You got it wrong
Output for 5.3.12
string(13) "5425494400962" You got it wrong
Output for 5.3.11
string(13) "5425494400969" You got it wrong
Output for 5.3.10
string(13) "5425494400840" You got it wrong
Output for 5.3.9
string(13) "5425494400847" You got it wrong
Output for 5.3.8
string(13) "5425494400976" You got it wrong
Output for 5.3.6
string(13) "5425494400905" You got it wrong
Output for 5.3.4
string(13) "5425494400807" You got it wrong
Output for 5.3.2
string(13) "5425494400907" You got it wrong
Output for 5.3.1
string(13) "5425494400902" You got it wrong
Output for 5.3.0
string(13) "5425494400756" You got it wrong
Output for 5.2.17
string(13) "5425494400647" You got it wrong
Output for 5.2.16
string(13) "5425494400723" You got it wrong
Output for 5.2.15
string(13) "5425494400545" You got it wrong
Output for 5.1.1, 5.2.14
string(13) "5425494400714" You got it wrong
Output for 5.2.10
string(13) "5425494400694" You got it wrong
Output for 5.1.2, 5.2.9
string(13) "5425494400648" You got it wrong
Output for 5.2.8
string(13) "5425494400548" You got it wrong
Output for 5.1.4, 5.2.0, 5.2.7
string(13) "5425494400644" You got it wrong
Output for 5.2.6
string(13) "5425494400695" You got it wrong
Output for 5.2.5
string(13) "5425494400791" You got it wrong
Output for 5.2.3
string(13) "5425494400746" You got it wrong
Output for 5.2.2
string(13) "5425494400733" You got it wrong
Output for 5.2.1
string(13) "5425494400741" You got it wrong
Output for 5.1.6
string(13) "5425494400627" You got it wrong
Output for 5.1.5
string(13) "5425494400643" You got it wrong
Output for 5.1.3
string(13) "5425494400631" You got it wrong
Output for 5.1.0
string(13) "5425494400540" You got it wrong
Output for 5.0.3, 5.0.5
string(13) "5425494400244" You got it wrong
Output for 5.0.4
string(13) "5425494400254" You got it wrong
Output for 5.0.2
string(13) "5425494400225" You got it wrong
Output for 5.0.1
string(13) "5425494400322" You got it wrong
Output for 5.0.0
string(13) "5425494400240" You got it wrong
Output for 4.3.0, 4.3.3, 4.3.6, 4.3.9 - 4.3.10, 4.4.1 - 4.4.2, 4.4.4 - 4.4.5, 4.4.7 - 4.4.9
string(13) "5425494400044" You got it wrong
Output for 4.4.6
string(13) "5425494400047" You got it wrong
Output for 4.4.0, 4.4.3
string(13) "5425494400040" You got it wrong
Output for 4.3.7, 4.3.11
string(13) "5425494400041" You got it wrong
Output for 4.3.1, 4.3.8
string(13) "5425494400045" You got it wrong
Output for 4.3.5
string(13) "5425494400043" You got it wrong
Output for 4.3.4
string(13) "5425494400049" You got it wrong
Output for 4.3.2
string(13) "5425494400048" You got it wrong