3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = uniqid(time()); function getNumber($val) { $lets = array(); foreach (range('a', 'z') as $let) { $lets[] = ("'`" . $let . "`is'"); } $num = range(1, 26); $val = strtolower($val); //var_dump($num); //var_dump($lets); var_dump($val); die(); $ret = preg_replace($let, $num, $val); $ret = substr(0, 10, $ret); return $ret; } $b = getNumber($a); echo "<pre>"; var_dump($b);
Output for 7.1.0
string(23) "137111785451b9991e0154a"
Output for 7.0.14
string(23) "137111785451b9991e00f6a"
Output for 7.0.12
string(23) "137111785451b9991e00982"
Output for 7.0.10
string(23) "137111785451b9991e00e99"
Output for 7.0.9
string(23) "137111785451b9991e00ee0"
Output for 7.0.8
string(23) "137111785451b9991e00e5c"
Output for 7.0.7
string(23) "137111785451b9991e00e13"
Output for 7.0.6
string(23) "137111785451b9991e00d2a"
Output for 7.0.5
string(23) "137111785451b9991e00e5b"
Output for 7.0.4
string(23) "137111785451b9991e00e7d"
Output for 7.0.3
string(23) "137111785451b9991e00ec0"
Output for 7.0.2
string(23) "137111785451b9991e00e7e"
Output for 7.0.1
string(23) "137111785451b9991e00f7e"
Output for 7.0.0
string(23) "137111785451b9991e013db"
Output for 5.6.28
string(23) "137111785451b9991e01236"
Output for 5.6.25
string(23) "137111785451b9991e01623"
Output for 5.6.24
string(23) "137111785451b9991e0120e"
Output for 5.6.23
string(23) "137111785451b9991e00b4e"
Output for 5.6.22
string(23) "137111785451b9991e01317"
Output for 5.6.21
string(23) "137111785451b9991e014e1"
Output for 5.6.20
string(23) "137111785451b9991e01c56"
Output for 5.6.19
string(23) "137111785451b9991e01173"
Output for 5.6.18
string(23) "137111785451b9991e01131"
Output for 5.6.17
string(23) "137111785451b9991e01140"
Output for 5.6.16
string(23) "137111785451b9991e01019"
Output for 5.6.15
string(23) "137111785451b9991e01125"
Output for 5.6.14
string(23) "137111785451b9991e00fc5"
Output for 5.6.13
string(23) "137111785451b9991e0123d"
Output for 5.6.12
string(23) "137111785451b9991e00fca"
Output for 5.6.11
string(23) "137111785451b9991e01023"
Output for 5.6.10
string(23) "137111785451b9991e0100d"
Output for 5.6.9
string(23) "137111785451b9991e0122a"
Output for 5.6.8
string(23) "137111785451b9991e011ac"
Output for 5.6.7
string(23) "137111785451b9991e0121c"
Output for 5.6.6
string(23) "137111785451b9991e01272"
Output for 5.6.5
string(23) "137111785451b9991e0181d"
Output for 5.6.4
string(23) "137111785451b9991e013b2"
Output for 5.5.21, 5.6.3
string(23) "137111785451b9991e01280"
Output for 5.6.2
string(23) "137111785451b9991e01357"
Output for 5.6.1
string(23) "137111785451b9991e01344"
Output for 5.6.0
string(23) "137111785451b9991e01168"
Output for 5.5.5, 5.5.38
string(23) "137111785451b9991e010f7"
Output for 5.5.37
string(23) "137111785451b9991e00b48"
Output for 5.5.36
string(23) "137111785451b9991e014a5"
Output for 5.5.35
string(23) "137111785451b9991e0118f"
Output for 5.5.34
string(23) "137111785451b9991e01034"
Output for 5.5.33
string(23) "137111785451b9991e013c8"
Output for 5.5.32
string(23) "137111785451b9991e00ea6"
Output for 5.5.31
string(23) "137111785451b9991e01044"
Output for 5.5.30
string(23) "137111785451b9991e00fba"
Output for 5.5.29
string(23) "137111785451b9991e01172"
Output for 5.5.28
string(23) "137111785451b9991e010b8"
Output for 5.5.27
string(23) "137111785451b9991e00e29"
Output for 5.5.26
string(23) "137111785451b9991e010ac"
Output for 5.5.25
string(23) "137111785451b9991e011b5"
Output for 5.5.24
string(23) "137111785451b9991e00bb4"
Output for 5.5.23
string(23) "137111785451b9991e00f37"
Output for 5.5.22
string(23) "137111785451b9991e0131b"
Output for 5.5.20
string(23) "137111785451b9991e01093"
Output for 5.5.19
string(23) "137111785451b9991e0132c"
Output for 5.5.18
string(23) "137111785451b9991e01219"
Output for 5.5.16
string(23) "137111785451b9991e00fa8"
Output for 5.5.15
string(23) "137111785451b9991e0103e"
Output for 5.5.14
string(23) "137111785451b9991e01300"
Output for 5.5.13
string(23) "137111785451b9991e011a8"
Output for 5.5.12
string(23) "137111785451b9991e0115a"
Output for 5.5.11
string(23) "137111785451b9991e00ed3"
Output for 5.5.10
string(23) "137111785451b9991e00c85"
Output for 5.5.9
string(23) "137111785451b9991e00e8a"
Output for 5.5.8
string(23) "137111785451b9991e01215"
Output for 5.5.7
string(23) "137111785451b9991e0106b"
Output for 5.5.6
string(23) "137111785451b9991e00d16"
Output for 5.5.4
string(23) "137111785451b9991e00eb6"
Output for 5.5.3
string(23) "137111785451b9991e01350"
Output for 5.5.2
string(23) "137111785451b9991e00fcb"
Output for 5.5.1
string(23) "137111785451b9991e01160"
Output for 5.5.0
string(23) "137111785451b9991e011d6"
Output for 5.4.45
string(23) "137111785451b9991e0103a"
Output for 5.4.44
string(23) "137111785451b9991e00f4b"
Output for 5.4.43
string(23) "137111785451b9991e00ddd"
Output for 5.4.42
string(23) "137111785451b9991e00fd5"
Output for 5.4.41
string(23) "137111785451b9991e0126e"
Output for 5.4.40
string(23) "137111785451b9991e010e8"
Output for 5.4.39
string(23) "137111785451b9991e0140c"
Output for 5.4.38
string(23) "137111785451b9991e0104c"
Output for 5.4.37
string(23) "137111785451b9991e010ad"
Output for 5.4.36
string(23) "137111785451b9991e00e50"
Output for 5.4.35
string(23) "137111785451b9991e00fa4"
Output for 5.4.34
string(23) "137111785451b9991e00dc5"
Output for 5.4.32
string(23) "137111785451b9991e00fce"
Output for 5.4.31
string(23) "137111785451b9991e00fb2"
Output for 5.4.30
string(23) "137111785451b9991e00f06"
Output for 5.4.29
string(23) "137111785451b9991e00fbd"
Output for 5.4.28
string(23) "137111785451b9991e013a4"
Output for 5.4.27
string(23) "137111785451b9991e01206"
Output for 5.4.26
string(23) "137111785451b9991e00b13"
Output for 5.4.25
string(23) "137111785451b9991e00e94"
Output for 5.4.24
string(23) "137111785451b9991e00f3a"
Output for 5.4.23
string(23) "137111785451b9991e00eaa"
Output for 5.4.22
string(23) "137111785451b9991e00fdb"
Output for 5.4.21
string(23) "137111785451b9991e0102c"
Output for 5.4.20
string(23) "137111785451b9991e00fe7"
Output for 5.4.19
string(23) "137111785451b9991e0106e"
Output for 5.4.18
string(23) "137111785451b9991e00d55"
Output for 5.4.17
string(23) "137111785451b9991e01242"
Output for 5.4.16
string(23) "137111785451b9991e009cc"
Output for 5.4.15
string(23) "137111785451b9991e00c22"
Output for 5.4.14
string(23) "137111785451b9991e00589"
Output for 5.4.13
string(23) "137111785451b9991e005b5"
Output for 5.4.12
string(23) "137111785451b9991e006b6"
Output for 5.4.11
string(23) "137111785451b9991e0053c"
Output for 5.4.10
string(23) "137111785451b9991e00542"
Output for 5.4.9
string(23) "137111785451b9991e00513"
Output for 5.4.8
string(23) "137111785451b9991e00697"
Output for 5.4.7
string(23) "137111785451b9991e0052b"
Output for 5.3.14, 5.4.6
string(23) "137111785451b9991e0055d"
Output for 5.4.5
string(23) "137111785451b9991e005b6"
Output for 5.4.4
string(23) "137111785451b9991e0064b"
Output for 5.4.1, 5.4.3
string(23) "137111785451b9991e00528"
Output for 5.4.2
string(23) "137111785451b9991e0084f"
Output for 5.4.0
string(23) "137111785451b9991e0053f"
Output for 5.3.29
string(23) "137111785451b9991e009be"
Output for 5.3.28
string(23) "137111785451b9991e0085a"
Output for 5.3.27
string(23) "137111785451b9991e00977"
Output for 5.3.26
string(23) "137111785451b9991e00639"
Output for 5.3.10, 5.3.25
string(23) "137111785451b9991e005b4"
Output for 5.3.24
string(23) "137111785451b9991e005cd"
Output for 5.3.23
string(23) "137111785451b9991e005c2"
Output for 5.3.22
string(23) "137111785451b9991e005cf"
Output for 5.3.21
string(23) "137111785451b9991e006bd"
Output for 5.3.20
string(23) "137111785451b9991e005b7"
Output for 5.3.19
string(23) "137111785451b9991e006ad"
Output for 5.3.6, 5.3.18
string(23) "137111785451b9991e0055c"
Output for 5.3.17
string(23) "137111785451b9991e0068d"
Output for 5.3.16
string(23) "137111785451b9991e005ec"
Output for 5.3.15
string(23) "137111785451b9991e0071e"
Output for 5.3.13
string(23) "137111785451b9991e00560"
Output for 5.3.12
string(23) "137111785451b9991e0063b"
Output for 5.3.11
string(23) "137111785451b9991e006a9"
Output for 5.3.9
string(23) "137111785451b9991e0059d"
Output for 5.3.3, 5.3.8
string(23) "137111785451b9991e00579"
Output for 5.3.7
string(23) "137111785451b9991e00565"
Output for 5.3.5
string(23) "137111785451b9991e007e9"
Output for 5.3.4
string(23) "137111785451b9991e007a4"
Output for 5.3.2
string(23) "137111785451b9991e00671"
Output for 5.3.1
string(23) "137111785451b9991e0058b"
Output for 5.3.0
string(23) "137111785451b9991e00559"
Output for 5.2.11, 5.2.14, 5.2.17
string(23) "137111785451b9991e0043a"
Output for 5.2.16
string(23) "137111785451b9991e00444"
Output for 5.2.15
string(23) "137111785451b9991e0042b"
Output for 5.2.13
string(23) "137111785451b9991e0043b"
Output for 5.2.12
string(23) "137111785451b9991e004f2"
Output for 5.2.10
string(23) "137111785451b9991e0043d"
Output for 5.2.9
string(23) "137111785451b9991e00439"
Output for 5.2.8
string(23) "137111785451b9991e00434"
Output for 5.2.7
string(23) "137111785451b9991e003f1"
Output for 5.2.6
string(23) "137111785451b9991e00436"
Output for 5.2.5
string(23) "137111785451b9991e00432"
Output for 5.2.4
string(23) "137111785451b9991e0052d"
Output for 5.2.3
string(23) "137111785451b9991e005f7"
Output for 5.2.2
string(23) "137111785451b9991e00426"
Output for 5.2.1
string(23) "137111785451b9991e003ee"
Output for 5.2.0
string(23) "137111785451b9991e00492"
Output for 5.1.6
string(23) "137111785451b9991e00403"
Output for 5.1.5
string(23) "137111785451b9991e006a2"
Output for 5.1.4
string(23) "137111785451b9991e00707"
Output for 5.1.3
string(23) "137111785451b9991e00736"
Output for 5.1.2
string(23) "137111785451b9991e0068e"
Output for 5.1.1
string(23) "137111785451b9991e0051e"
Output for 5.1.0
string(23) "137111785451b9991e004b4"
Output for 5.0.5
string(23) "137111785451b9991e00324"
Output for 5.0.4
string(23) "137111785451b9991e00297"
Output for 5.0.3
string(23) "137111785451b9991e0030d"
Output for 5.0.2
string(23) "137111785451b9991e00362"
Output for 5.0.1
string(23) "137111785451b9991e0037c"
Output for 5.0.0
string(23) "137111785451b9991e00353"
Output for 4.4.9
string(23) "137111785451b9991e00091"
Output for 4.4.8
string(23) "137111785451b9991e00097"
Output for 4.4.7
string(23) "137111785451b9991e000c3"
Output for 4.4.6
string(23) "137111785451b9991e000cc"
Output for 4.4.5
string(23) "137111785451b9991e0009e"
Output for 4.4.4
string(23) "137111785451b9991e000c8"
Output for 4.4.3
string(23) "137111785451b9991e000f6"
Output for 4.4.2
string(23) "137111785451b9991e000d9"
Output for 4.4.1
string(23) "137111785451b9991e000f8"
Output for 4.4.0
string(23) "137111785451b9991e000e5"
Output for 4.3.1, 4.3.11
string(23) "137111785451b9991e000f1"
Output for 4.3.10
string(23) "137111785451b9991e000e1"
Output for 4.3.9
string(23) "137111785451b9991e00111"
Output for 4.3.8
string(23) "137111785451b9991e000f0"
Output for 4.3.7
string(23) "137111785451b9991e000ad"
Output for 4.3.6
string(23) "137111785451b9991e000d0"
Output for 4.3.5
string(23) "137111785451b9991e00109"
Output for 4.3.4
string(23) "137111785451b9991e000e6"
Output for 4.3.3
string(23) "137111785451b9991e000e0"
Output for 4.3.2
string(23) "137111785451b9991e00103"
Output for 4.3.0
string(23) "137111785451b9991e000fb"