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($lets, $num, $val); print_r($ret);die(); $ret = substr(0, 10, $ret); return $ret; } $b = getNumber($a); echo "<pre>"; var_dump($b);
Output for 7.1.0
137111797451b9999600e7f
Output for 7.0.14
137111797451b9999600f79
Output for 7.0.8
137111797451b9999600a41
Output for 7.0.7
137111797451b99996009cd
Output for 7.0.6
137111797451b9999600bb3
Output for 7.0.5
137111797451b9999600e11
Output for 7.0.4
137111797451b9999600d04
Output for 7.0.3
137111797451b9999600e93
Output for 7.0.2
137111797451b9999600de6
Output for 7.0.1
137111797451b9999600d9a
Output for 7.0.0
137111797451b9999600a88
Output for hhvm-3.12.0
137111797551b99996221b7
Output for hhvm-3.10.0
137111797451b9999621248
Output for 5.6.28
137111797451b99996010b1
Output for 5.6.23
137111797451b9999600cf4
Output for 5.5.36, 5.6.22
137111797451b9999600ac6
Output for 5.6.21
137111797451b9999600ba2
Output for 5.6.14, 5.6.20
137111797451b9999600fbb
Output for 5.6.19
137111797451b9999601031
Output for 5.6.18
137111797451b999960111d
Output for 5.6.17
137111797451b99996011f0
Output for 5.6.16
137111797451b9999600c77
Output for 5.6.15
137111797451b999960136b
Output for 5.6.13
137111797451b9999601279
Output for 5.6.12
137111797451b9999601181
Output for 5.6.11
137111797451b9999601069
Output for 5.6.10
137111797451b9999601336
Output for 5.6.9
137111797451b9999600fc3
Output for 5.6.8
137111797451b99996010da
Output for 5.6.7
137111797451b9999601081
Output for 5.5.21, 5.6.6
137111797451b9999601366
Output for 5.6.5
137111797451b9999601324
Output for 5.6.4
137111797451b9999600ec1
Output for 5.6.3
137111797451b9999601297
Output for 5.6.2
137111797451b9999601320
Output for 5.6.1
137111797451b9999600c1a
Output for 5.6.0
137111797451b999960123d
Output for 5.5.37
137111797451b9999600bfe
Output for 5.5.35
137111797451b9999600ad9
Output for 5.5.34
137111797451b9999600ea5
Output for 5.5.33
137111797451b9999601053
Output for 5.5.32
137111797451b9999600d63
Output for 5.5.31
137111797451b99996012ce
Output for 5.5.30
137111797451b9999601364
Output for 5.5.29
137111797451b9999600c09
Output for 5.5.28
137111797451b99996011c0
Output for 5.5.27
137111797451b9999601121
Output for 5.5.26
137111797451b9999600c0a
Output for 5.5.25
137111797451b999960126e
Output for 5.4.20, 5.5.24
137111797451b999960110b
Output for 5.5.23
137111797451b9999600bb6
Output for 5.5.22
137111797451b9999601038
Output for 5.5.20
137111797451b99996016dd
Output for 5.5.19
137111797451b99996011a0
Output for 5.5.18
137111797451b999960106f
Output for 5.5.16
137111797451b9999601097
Output for 5.5.15
137111797451b999960100c
Output for 5.5.14
137111797451b99996011a6
Output for 5.5.13
137111797451b9999601299
Output for 5.5.12
137111797451b9999600cfa
Output for 5.5.11
137111797451b9999600be5
Output for 5.5.10
137111797451b99996012d4
Output for 5.5.9
137111797451b9999601360
Output for 5.5.8
137111797451b99996012cd
Output for 5.5.7
137111797451b9999600d0b
Output for 5.5.6
137111797451b9999601265
Output for 5.5.5
137111797451b9999600e40
Output for 5.5.4
137111797451b9999600cb2
Output for 5.5.3
137111797451b9999600e72
Output for 5.5.2
137111797451b999960119f
Output for 5.5.1
137111797451b9999600d64
Output for 5.5.0
137111797451b99996010e8
Output for 5.4.45
137111797451b99996010d8
Output for 5.4.44
137111797451b99996010fd
Output for 5.4.43
137111797451b9999600f5d
Output for 5.4.42
137111797451b9999600a34
Output for 5.4.41
137111797451b9999601099
Output for 5.4.40
137111797451b9999600eb0
Output for 5.4.39
137111797451b9999600f0a
Output for 5.4.38
137111797451b9999600d31
Output for 5.4.37
137111797451b9999600a25
Output for 5.4.36
137111797451b999960108a
Output for 5.4.35
137111797451b9999600d50
Output for 5.4.34
137111797451b9999600c11
Output for 5.4.32
137111797451b9999600a5e
Output for 5.4.31
137111797451b9999600f34
Output for 5.4.30
137111797451b9999600cab
Output for 5.4.29
137111797451b9999600fcc
Output for 5.4.28
137111797451b9999600c1c
Output for 5.4.27
137111797451b9999600ea1
Output for 5.4.26
137111797451b9999600a54
Output for 5.4.25
137111797451b9999601076
Output for 5.4.24
137111797451b9999600cc2
Output for 5.4.23
137111797451b9999601077
Output for 5.4.22
137111797451b9999600a55
Output for 5.4.21
137111797451b9999600e0c
Output for 5.4.19
137111797451b9999600d49
Output for 5.4.18
137111797451b9999600e2c
Output for 5.4.17
137111797451b9999600c42
Output for 5.4.16
137111797451b9999600ba9
Output for 5.4.15
137111797451b9999600a5c
Output for 5.4.14
137111797451b99996008e1
Output for 5.4.13
137111797451b99996008af
Output for 5.4.12
137111797451b99996007b3
Output for 5.4.11
137111797451b9999600812
Output for 5.4.10
137111797451b999960067f
Output for 5.4.9
137111797451b99996005ea
Output for 5.4.8
137111797451b9999600983
Output for 5.4.7
137111797451b99996008a7
Output for 5.4.6
137111797451b99996005db
Output for 5.4.5
137111797451b9999600825
Output for 5.4.4
137111797451b99996008c7
Output for 5.4.3
137111797451b999960087e
Output for 5.4.2
137111797451b99996007ff
Output for 5.4.1
137111797451b9999600876
Output for 5.4.0
137111797451b99996005ce
Output for 5.3.29
137111797451b99996005e9
Output for 5.3.28
137111797451b999960073c
Output for 5.3.27
137111797451b9999600973
Output for 5.3.26
137111797451b99996005ec
Output for 5.3.25
137111797451b999960088b
Output for 5.3.24
137111797451b99996005fd
Output for 5.3.23
137111797451b9999600912
Output for 5.3.22
137111797451b99996006d0
Output for 5.3.21
137111797451b99996007fb
Output for 5.3.20
137111797451b99996008ba
Output for 5.3.19
137111797451b9999600616
Output for 5.3.18
137111797451b9999600869
Output for 5.3.17
137111797451b99996008e3
Output for 5.3.16
137111797451b99996009a3
Output for 5.3.15
137111797451b9999600987
Output for 5.3.14
137111797451b999960065c
Output for 5.3.13
137111797451b99996007bc
Output for 5.3.12
137111797451b9999600637
Output for 5.3.11
137111797451b9999600926
Output for 5.3.10
137111797451b9999600764
Output for 5.3.9
137111797451b9999600784
Output for 5.3.8
137111797451b9999600911
Output for 5.3.7
137111797451b9999600a9a
Output for 5.3.6
137111797451b999960088f
Output for 5.3.5
137111797451b9999600857
Output for 5.3.4
137111797451b99996008b8
Output for 5.3.3
137111797451b99996005f1
Output for 5.3.2
137111797451b99996009de
Output for 5.3.1
137111797451b999960090f
Output for 5.3.0
137111797451b9999600848
Output for 5.2.17
137111797451b99996007db
Output for 5.2.16
137111797451b99996005dc
Output for 5.2.15
137111797451b9999600530
Output for 5.2.14
137111797451b99996007d7
Output for 5.2.13
137111797451b999960077d
Output for 5.2.12
137111797451b999960080d
Output for 5.2.11
137111797451b99996007a5
Output for 5.2.10
137111797451b99996007c6
Output for 5.2.0, 5.2.9
137111797451b9999600810
Output for 5.2.8
137111797451b999960069d
Output for 5.2.7
137111797451b99996006db
Output for 5.2.6
137111797451b9999600830
Output for 5.2.5
137111797451b999960065f
Output for 5.2.4
137111797451b999960070a
Output for 5.2.3
137111797451b99996007e6
Output for 5.2.2
137111797451b999960079f
Output for 5.2.1
137111797451b99996005a0
Output for 5.1.6
137111797451b999960076e
Output for 5.1.5
137111797451b999960071e
Output for 5.1.4
137111797451b9999600672
Output for 5.1.3
137111797451b999960073b
Output for 5.1.2
137111797451b99996007d9
Output for 5.1.1
137111797451b99996005fb
Output for 5.1.0
137111797451b99996006b3
Output for 5.0.5
137111797451b999960026e
Output for 5.0.4
137111797451b9999600356
Output for 5.0.3
137111797451b999960020e
Output for 5.0.2
137111797451b99996002ea
Output for 5.0.1
137111797451b99996002d8
Output for 5.0.0
137111797451b99996002f9
Output for 4.4.9
137111797451b99996000b3
Output for 4.4.8
137111797451b99996000f8
Output for 4.4.5, 4.4.7
137111797451b99996000f2
Output for 4.4.6
137111797451b99996000dc
Output for 4.4.4
137111797451b99996000fe
Output for 4.4.3
137111797451b99996000e2
Output for 4.4.2
137111797451b99996000e6
Output for 4.3.4, 4.4.1
137111797451b99996000e1
Output for 4.4.0
137111797451b99996000de
Output for 4.3.11
137111797451b99996000c3
Output for 4.3.10
137111797451b99996000d1
Output for 4.3.9
137111797451b99996000e3
Output for 4.3.8
137111797451b99996000c8
Output for 4.3.7
137111797451b99996000ec
Output for 4.3.5 - 4.3.6
137111797451b99996000e8
Output for 4.3.3
137111797451b99996000cb
Output for 4.3.2
137111797451b99996000aa
Output for 4.3.1
137111797451b999960009d
Output for 4.3.0
137111797451b99996000f0