3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $chars = array(0,1,2,3,4,5,6,7,8,9); $serial = ''; $max = count($chars)-1; for($i=0;$i<20;$i++){ $serial .= (!($i % 5) && $i ? '-' : '').$chars[rand(0, $max)]; } echo $serial;
based on v80pc
Output for 7.1.0
47235-06980-21419-55281
Output for 7.0.14
43952-92122-88503-50600
Output for 7.0.6
31664-51822-58052-47120
Output for 7.0.5
60624-20324-66924-44371
Output for 7.0.4
41984-50730-70470-36760
Output for 7.0.3
78434-64152-67515-38059
Output for 7.0.2
06798-34726-88518-56329
Output for 7.0.1
17270-28394-37211-40363
Output for 7.0.0
71275-73168-29558-60279
Output for hhvm-3.12.0
80945-40755-96539-11415
Output for hhvm-3.10.0
22639-73384-03064-00695
Output for 5.6.28
78495-86442-50527-42196
Output for 5.6.21
93352-14713-52485-26203
Output for 5.6.20
09750-14794-48902-37618
Output for 5.6.19
86735-68970-78173-00134
Output for 5.6.18
10880-82222-06055-51822
Output for 5.6.17
92552-37057-50603-36530
Output for 5.6.16
17079-41212-59900-59540
Output for 5.6.15
59588-82141-35100-61711
Output for 5.6.14
73081-37513-89282-96805
Output for 5.6.13
45132-62491-00596-72219
Output for 5.6.12
79963-06337-79380-97037
Output for 5.6.11
61923-00630-37277-78485
Output for 5.6.10
48163-28727-38063-68525
Output for 5.6.9
64753-85876-08000-05441
Output for 5.6.8
99724-29734-86604-82875
Output for 5.5.35
03603-38325-53300-25037
Output for 5.5.34
50946-70576-40753-47951
Output for 5.5.33
84108-43327-05425-98998
Output for 5.5.32
35992-82828-07360-34140
Output for 5.5.31
15368-78798-89492-45111
Output for 5.5.30
92499-68740-65982-09910
Output for 5.5.29
17153-66094-20614-29544
Output for 5.5.28
39154-70144-65837-31845
Output for 5.5.27
33122-47881-72479-27717
Output for 5.5.26
24032-17111-38473-37435
Output for 5.5.25
55269-84731-67574-91196
Output for 5.5.24
29494-91982-17243-55768
Output for 5.4.45
58367-44026-60322-08001
Output for 5.4.44
82881-16248-42699-62163
Output for 5.4.43
17545-86979-05148-27462
Output for 5.4.42
18458-61857-51140-36292
Output for 5.4.41
57758-11330-34463-66274
Output for 5.4.40
60881-49279-41884-57342
Output for 5.4.39
64970-33938-12315-08938
Output for 5.4.38
71349-52098-83110-78796
Output for 5.4.37
42796-26662-22718-15915
Output for 5.4.36
07450-87801-25156-70650
Output for 5.4.35
52367-46941-17070-66612
Output for 5.4.34
52394-38164-12460-01894
Output for 5.4.32
70133-33841-27477-59201
Output for 5.4.31
36886-83416-07445-51831
Output for 5.4.30
09793-59417-73528-81074
Output for 5.4.29
41047-33960-63840-30914
Output for 5.4.28
90774-08059-56636-61320
Output for 5.4.27
73433-45467-83887-88740
Output for 5.4.26
08921-48808-28498-49623
Output for 5.4.25
30202-59063-29230-75047
Output for 5.4.24
80817-93033-73641-82360
Output for 5.4.23
28880-93491-95884-12912
Output for 5.4.22
87159-87316-46395-38855
Output for 5.4.21
27278-84041-27456-19549
Output for 5.4.20
96409-18488-21041-09110
Output for 5.4.19
28806-54817-00494-90229
Output for 5.4.18
47891-43249-20188-76482
Output for 5.4.17
08198-49043-80946-79687
Output for 5.4.16
41862-37172-17800-99683
Output for 5.4.15
83814-83266-76430-24013
Output for 5.4.14
74034-42464-89680-98670
Output for 5.4.13
20242-01602-57131-64964
Output for 5.4.12
88147-15070-37527-52560
Output for 5.4.11
13669-98862-28804-72037
Output for 5.4.10
08255-08372-70772-33201
Output for 5.4.9
71640-14737-12201-91527
Output for 5.4.8
43455-20300-41540-18710
Output for 5.4.7
07220-86457-93348-27577
Output for 5.4.6
01075-24425-56432-25570
Output for 5.4.5
77081-90784-55502-59481
Output for 5.4.4
09914-29584-52953-24074
Output for 5.4.3
37009-33795-20669-51320
Output for 5.4.2
46377-43040-38327-57722
Output for 5.4.1
23938-14041-47512-72334
Output for 5.4.0
26673-92783-97132-77784
Output for 5.3.29
08004-35587-19594-49147
Output for 5.3.28
45958-17736-04167-42068
Output for 5.3.27
49014-12330-98503-27946
Output for 5.3.26
76016-28350-91228-24391
Output for 5.3.25
31078-34299-06598-60358
Output for 5.3.24
94254-55623-04446-23499
Output for 5.3.23
60431-54829-66104-97603
Output for 5.3.22
59229-27233-13844-86418
Output for 5.3.21
98132-24601-30494-15536
Output for 5.3.20
30053-31400-97553-63361
Output for 5.3.19
10719-07337-80198-99747
Output for 5.3.18
50984-57025-85819-88927
Output for 5.3.17
95124-14038-73413-39551
Output for 5.3.16
91876-89412-10295-12024
Output for 5.3.15
75857-96272-05189-47546
Output for 5.3.14
49487-52523-67698-52144
Output for 5.3.13
55878-04375-84464-36173
Output for 5.3.12
61285-52826-84508-07955
Output for 5.3.11
23387-03596-71513-52069
Output for 5.3.10
04054-26818-14566-67482
Output for 5.3.9
63698-27431-54010-55547
Output for 5.3.8
61893-81954-81797-67546
Output for 5.3.7
32068-45864-91179-15718
Output for 5.3.6
50766-89626-03581-53142
Output for 5.3.5
78453-98525-79955-71428
Output for 5.3.4
00816-06984-43622-18129
Output for 5.3.3
50348-07872-51624-13363
Output for 5.3.2
71740-80080-33588-07505
Output for 5.3.1
86950-02465-08109-86985
Output for 5.3.0
06042-56051-49753-64393
Output for 5.2.17
63048-10214-41370-12325
Output for 5.2.16
94769-45816-84475-53202
Output for 5.2.15
79199-96675-19294-50490
Output for 5.2.14
49016-67244-73148-88933
Output for 5.2.13
33774-38571-68281-05147
Output for 5.2.12
70856-19806-36053-44570
Output for 5.2.11
39744-49521-64979-31286
Output for 5.2.10
79325-57695-42289-68130
Output for 5.2.9
09773-60353-41812-66965
Output for 5.2.8
10797-85775-41187-48558
Output for 5.2.7
55988-35177-81327-00837
Output for 5.2.6
92172-07824-48397-10167
Output for 5.2.5
06183-51749-93700-07530
Output for 5.2.4
22328-31449-46822-33390
Output for 5.2.3
67744-92224-18009-25076
Output for 5.2.2
43374-77442-72889-07649
Output for 5.2.1
00225-04923-56009-09594
Output for 5.2.0
16251-96638-93922-80540
Output for 5.1.6
26965-19516-68149-88275
Output for 5.1.5
14333-06339-09335-31758
Output for 5.1.4
21546-55321-89986-41286
Output for 5.1.3
17702-76732-12538-20234
Output for 5.1.2
54671-45367-86233-82415
Output for 5.1.1
17397-42828-55325-24219
Output for 5.1.0
37258-80938-91010-28666
Output for 5.0.5
36933-01209-47491-85043
Output for 5.0.4
03373-42701-27209-75512
Output for 5.0.3
65165-20900-56358-05611
Output for 5.0.2
26524-61232-13615-56940
Output for 5.0.1
99612-27396-40552-99774
Output for 5.0.0
22119-37585-05464-26338
Output for 4.4.9
25908-03586-27781-90443
Output for 4.4.8
86559-31974-61959-68161
Output for 4.4.7
14322-73190-48759-34278
Output for 4.4.6
70720-72139-70114-59807
Output for 4.4.5
08028-19448-26180-26911
Output for 4.4.4
37085-27432-39273-26407
Output for 4.4.3
34851-38071-58187-99304
Output for 4.4.2
50026-98632-53777-33999
Output for 4.4.1
80646-65724-60503-31102
Output for 4.4.0
66529-36392-20318-70444
Output for 4.3.11
74483-56900-28136-31179
Output for 4.3.10
77047-68883-17544-15352
Output for 4.3.9
49763-93450-53847-75983
Output for 4.3.8
51827-56668-65653-59646
Output for 4.3.7
70841-27471-66339-16117
Output for 4.3.6
98086-25384-03931-85279
Output for 4.3.5
66993-07224-50849-03232
Output for 4.3.4
44657-97504-11672-64805
Output for 4.3.3
59645-84961-34189-00908
Output for 4.3.2
32991-82856-50437-67078
Output for 4.3.1
68858-73223-89745-92545
Output for 4.3.0
34110-19443-18880-00169