3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 10; $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, strlen($characters) - 1)]; } print_r(rand(0,$characters));
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 83023898
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/j287c on line 8 9890475
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 69766249
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 69058684
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 41899111
Output for 7.0.20
Notice: A non well formed numeric value encountered in /in/j287c on line 8 63811037
Output for 7.0.14
Notice: A non well formed numeric value encountered in /in/j287c on line 8 32416133
Output for 7.0.8
Notice: A non well formed numeric value encountered in /in/j287c on line 8 96774354
Output for 7.0.7
Notice: A non well formed numeric value encountered in /in/j287c on line 8 66711069
Output for 7.0.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 118941002
Output for 7.0.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 98602450
Output for 7.0.4
Notice: A non well formed numeric value encountered in /in/j287c on line 8 70634493
Output for 7.0.3
Notice: A non well formed numeric value encountered in /in/j287c on line 8 23068339
Output for 7.0.2
Notice: A non well formed numeric value encountered in /in/j287c on line 8 119242884
Output for 7.0.1
Notice: A non well formed numeric value encountered in /in/j287c on line 8 24908491
Output for 7.0.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 11741014
Output for 5.6.28
Notice: A non well formed numeric value encountered in /in/j287c on line 8 35906182
Output for 5.6.23
Notice: A non well formed numeric value encountered in /in/j287c on line 8 107003600
Output for 5.6.22
Notice: A non well formed numeric value encountered in /in/j287c on line 8 64416369
Output for 5.6.21
Notice: A non well formed numeric value encountered in /in/j287c on line 8 31712398
Output for 5.6.20
Notice: A non well formed numeric value encountered in /in/j287c on line 8 88564664
Output for 5.6.19
Notice: A non well formed numeric value encountered in /in/j287c on line 8 15832231
Output for 5.6.18
Notice: A non well formed numeric value encountered in /in/j287c on line 8 61057402
Output for 5.6.17
Notice: A non well formed numeric value encountered in /in/j287c on line 8 81796732
Output for 5.6.16
Notice: A non well formed numeric value encountered in /in/j287c on line 8 5947535
Output for 5.6.15
Notice: A non well formed numeric value encountered in /in/j287c on line 8 55430403
Output for 5.6.14
Notice: A non well formed numeric value encountered in /in/j287c on line 8 91867094
Output for 5.6.13
Notice: A non well formed numeric value encountered in /in/j287c on line 8 51406018
Output for 5.6.12
Notice: A non well formed numeric value encountered in /in/j287c on line 8 76350908
Output for 5.6.11
Notice: A non well formed numeric value encountered in /in/j287c on line 8 118689588
Output for 5.6.10
Notice: A non well formed numeric value encountered in /in/j287c on line 8 13425244
Output for 5.6.9
Notice: A non well formed numeric value encountered in /in/j287c on line 8 90114649
Output for 5.6.8
Notice: A non well formed numeric value encountered in /in/j287c on line 8 71872684
Output for 5.6.7
Notice: A non well formed numeric value encountered in /in/j287c on line 8 33393365
Output for 5.6.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 81800139
Output for 5.6.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 65112760
Output for 5.6.4
Notice: A non well formed numeric value encountered in /in/j287c on line 8 103201046
Output for 5.6.3
Notice: A non well formed numeric value encountered in /in/j287c on line 8 8580602
Output for 5.6.2
Notice: A non well formed numeric value encountered in /in/j287c on line 8 52300680
Output for 5.6.1
Notice: A non well formed numeric value encountered in /in/j287c on line 8 111198991
Output for 5.6.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 93921487
Output for 5.5.37
Notice: A non well formed numeric value encountered in /in/j287c on line 8 24834665
Output for 5.5.36
Notice: A non well formed numeric value encountered in /in/j287c on line 8 19500951
Output for 5.5.35
Notice: A non well formed numeric value encountered in /in/j287c on line 8 89451334
Output for 5.5.34
Notice: A non well formed numeric value encountered in /in/j287c on line 8 3644708
Output for 5.5.33
Notice: A non well formed numeric value encountered in /in/j287c on line 8 48195837
Output for 5.5.32
Notice: A non well formed numeric value encountered in /in/j287c on line 8 36237462
Output for 5.5.31
Notice: A non well formed numeric value encountered in /in/j287c on line 8 4878705
Output for 5.5.30
Notice: A non well formed numeric value encountered in /in/j287c on line 8 13338517
Output for 5.5.29
Notice: A non well formed numeric value encountered in /in/j287c on line 8 65889417
Output for 5.5.28
Notice: A non well formed numeric value encountered in /in/j287c on line 8 8548709
Output for 5.5.27
Notice: A non well formed numeric value encountered in /in/j287c on line 8 45164570
Output for 5.5.26
Notice: A non well formed numeric value encountered in /in/j287c on line 8 81833755
Output for 5.5.25
Notice: A non well formed numeric value encountered in /in/j287c on line 8 27178946
Output for 5.5.24
Notice: A non well formed numeric value encountered in /in/j287c on line 8 13297119
Output for 5.5.23
Notice: A non well formed numeric value encountered in /in/j287c on line 8 97858053
Output for 5.5.22
Notice: A non well formed numeric value encountered in /in/j287c on line 8 91471680
Output for 5.5.21
Notice: A non well formed numeric value encountered in /in/j287c on line 8 102048556
Output for 5.5.20
Notice: A non well formed numeric value encountered in /in/j287c on line 8 53252733
Output for 5.5.19
Notice: A non well formed numeric value encountered in /in/j287c on line 8 31252912
Output for 5.5.18
Notice: A non well formed numeric value encountered in /in/j287c on line 8 3242777
Output for 5.5.16
Notice: A non well formed numeric value encountered in /in/j287c on line 8 21125328
Output for 5.5.15
Notice: A non well formed numeric value encountered in /in/j287c on line 8 91717888
Output for 5.5.14
Notice: A non well formed numeric value encountered in /in/j287c on line 8 67426387
Output for 5.5.13
Notice: A non well formed numeric value encountered in /in/j287c on line 8 24958
Output for 5.5.12
Notice: A non well formed numeric value encountered in /in/j287c on line 8 57741782
Output for 5.5.11
Notice: A non well formed numeric value encountered in /in/j287c on line 8 85489955
Output for 5.5.10
Notice: A non well formed numeric value encountered in /in/j287c on line 8 70245047
Output for 5.5.9
Notice: A non well formed numeric value encountered in /in/j287c on line 8 99683616
Output for 5.5.8
Notice: A non well formed numeric value encountered in /in/j287c on line 8 33850793
Output for 5.5.7
Notice: A non well formed numeric value encountered in /in/j287c on line 8 102756411
Output for 5.5.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 83959565
Output for 5.5.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 18718763
Output for 5.5.4
Notice: A non well formed numeric value encountered in /in/j287c on line 8 82291518
Output for 5.5.3
Notice: A non well formed numeric value encountered in /in/j287c on line 8 62395090
Output for 5.5.2
Notice: A non well formed numeric value encountered in /in/j287c on line 8 118723082
Output for 5.5.1
Notice: A non well formed numeric value encountered in /in/j287c on line 8 4215611
Output for 5.5.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 35271246
Output for 5.4.45
Notice: A non well formed numeric value encountered in /in/j287c on line 8 95816094
Output for 5.4.44
Notice: A non well formed numeric value encountered in /in/j287c on line 8 33721656
Output for 5.4.43
Notice: A non well formed numeric value encountered in /in/j287c on line 8 55951903
Output for 5.4.42
Notice: A non well formed numeric value encountered in /in/j287c on line 8 122023951
Output for 5.4.41
Notice: A non well formed numeric value encountered in /in/j287c on line 8 6706714
Output for 5.4.40
Notice: A non well formed numeric value encountered in /in/j287c on line 8 39902969
Output for 5.4.39
Notice: A non well formed numeric value encountered in /in/j287c on line 8 42258030
Output for 5.4.38
Notice: A non well formed numeric value encountered in /in/j287c on line 8 114014789
Output for 5.4.37
Notice: A non well formed numeric value encountered in /in/j287c on line 8 69098771
Output for 5.4.36
Notice: A non well formed numeric value encountered in /in/j287c on line 8 73860152
Output for 5.4.35
Notice: A non well formed numeric value encountered in /in/j287c on line 8 714021
Output for 5.4.34
Notice: A non well formed numeric value encountered in /in/j287c on line 8 9264295
Output for 5.4.32
Notice: A non well formed numeric value encountered in /in/j287c on line 8 42148761
Output for 5.4.31
Notice: A non well formed numeric value encountered in /in/j287c on line 8 12540418
Output for 5.4.30
Notice: A non well formed numeric value encountered in /in/j287c on line 8 76077879
Output for 5.4.29
Notice: A non well formed numeric value encountered in /in/j287c on line 8 16058866
Output for 5.4.28
Notice: A non well formed numeric value encountered in /in/j287c on line 8 83715092
Output for 5.4.27
Notice: A non well formed numeric value encountered in /in/j287c on line 8 52858695
Output for 5.4.26
Notice: A non well formed numeric value encountered in /in/j287c on line 8 83016638
Output for 5.4.25
Notice: A non well formed numeric value encountered in /in/j287c on line 8 30297560
Output for 5.4.24
Notice: A non well formed numeric value encountered in /in/j287c on line 8 87055792
Output for 5.4.23
Notice: A non well formed numeric value encountered in /in/j287c on line 8 62960922
Output for 5.4.22
Notice: A non well formed numeric value encountered in /in/j287c on line 8 103767080
Output for 5.4.21
Notice: A non well formed numeric value encountered in /in/j287c on line 8 80606240
Output for 5.4.20
Notice: A non well formed numeric value encountered in /in/j287c on line 8 99453351
Output for 5.4.19
Notice: A non well formed numeric value encountered in /in/j287c on line 8 46011956
Output for 5.4.18
Notice: A non well formed numeric value encountered in /in/j287c on line 8 73417426
Output for 5.4.17
Notice: A non well formed numeric value encountered in /in/j287c on line 8 51437892
Output for 5.4.16
Notice: A non well formed numeric value encountered in /in/j287c on line 8 59472938
Output for 5.4.15
Notice: A non well formed numeric value encountered in /in/j287c on line 8 2228385
Output for 5.4.14
Notice: A non well formed numeric value encountered in /in/j287c on line 8 485875
Output for 5.4.13
Notice: A non well formed numeric value encountered in /in/j287c on line 8 97055617
Output for 5.4.12
Notice: A non well formed numeric value encountered in /in/j287c on line 8 23372018
Output for 5.4.11
Notice: A non well formed numeric value encountered in /in/j287c on line 8 34297936
Output for 5.4.10
Notice: A non well formed numeric value encountered in /in/j287c on line 8 81088430
Output for 5.4.9
Notice: A non well formed numeric value encountered in /in/j287c on line 8 19057559
Output for 5.4.8
Notice: A non well formed numeric value encountered in /in/j287c on line 8 79208875
Output for 5.4.7
Notice: A non well formed numeric value encountered in /in/j287c on line 8 101681539
Output for 5.4.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 19802581
Output for 5.4.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 103457783
Output for 5.4.4
Notice: A non well formed numeric value encountered in /in/j287c on line 8 41094018
Output for 5.4.3
Notice: A non well formed numeric value encountered in /in/j287c on line 8 55635832
Output for 5.4.2
Notice: A non well formed numeric value encountered in /in/j287c on line 8 21369844
Output for 5.4.1
Notice: A non well formed numeric value encountered in /in/j287c on line 8 92582322
Output for 5.4.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 38909894
Output for 5.3.29
Notice: A non well formed numeric value encountered in /in/j287c on line 8 85211785
Output for 5.3.28
Notice: A non well formed numeric value encountered in /in/j287c on line 8 116971460
Output for 5.3.27
Notice: A non well formed numeric value encountered in /in/j287c on line 8 20631609
Output for 5.3.26
Notice: A non well formed numeric value encountered in /in/j287c on line 8 35285866
Output for 5.3.25
Notice: A non well formed numeric value encountered in /in/j287c on line 8 7681740
Output for 5.3.24
Notice: A non well formed numeric value encountered in /in/j287c on line 8 76360057
Output for 5.3.23
Notice: A non well formed numeric value encountered in /in/j287c on line 8 93989362
Output for 5.3.22
Notice: A non well formed numeric value encountered in /in/j287c on line 8 48880524
Output for 5.3.21
Notice: A non well formed numeric value encountered in /in/j287c on line 8 44381298
Output for 5.3.20
Notice: A non well formed numeric value encountered in /in/j287c on line 8 103502030
Output for 5.3.19
Notice: A non well formed numeric value encountered in /in/j287c on line 8 121090220
Output for 5.3.18
Notice: A non well formed numeric value encountered in /in/j287c on line 8 38491274
Output for 5.3.17
Notice: A non well formed numeric value encountered in /in/j287c on line 8 18950763
Output for 5.3.16
Notice: A non well formed numeric value encountered in /in/j287c on line 8 116263393
Output for 5.3.15
Notice: A non well formed numeric value encountered in /in/j287c on line 8 113902625
Output for 5.3.14
Notice: A non well formed numeric value encountered in /in/j287c on line 8 45802224
Output for 5.3.13
Notice: A non well formed numeric value encountered in /in/j287c on line 8 88027913
Output for 5.3.12
Notice: A non well formed numeric value encountered in /in/j287c on line 8 92354040
Output for 5.3.11
Notice: A non well formed numeric value encountered in /in/j287c on line 8 100980534
Output for 5.3.10
Notice: A non well formed numeric value encountered in /in/j287c on line 8 43669204
Output for 5.3.9
Notice: A non well formed numeric value encountered in /in/j287c on line 8 53701360
Output for 5.3.8
Notice: A non well formed numeric value encountered in /in/j287c on line 8 90548035
Output for 5.3.7
Notice: A non well formed numeric value encountered in /in/j287c on line 8 23133654
Output for 5.3.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 110090684
Output for 5.3.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 90494784
Output for 5.3.4
Notice: A non well formed numeric value encountered in /in/j287c on line 8 3152733
Output for 5.3.3
Notice: A non well formed numeric value encountered in /in/j287c on line 8 50373724
Output for 5.3.2
Notice: A non well formed numeric value encountered in /in/j287c on line 8 46483200
Output for 5.3.1
Notice: A non well formed numeric value encountered in /in/j287c on line 8 72869869
Output for 5.3.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 8314286
Output for 5.2.17
Notice: A non well formed numeric value encountered in /in/j287c on line 8 102457235
Output for 5.2.16
Notice: A non well formed numeric value encountered in /in/j287c on line 8 70758301
Output for 5.2.15
Notice: A non well formed numeric value encountered in /in/j287c on line 8 10598788
Output for 5.2.14
Notice: A non well formed numeric value encountered in /in/j287c on line 8 98493754
Output for 5.2.13
Notice: A non well formed numeric value encountered in /in/j287c on line 8 5778249
Output for 5.2.12
Notice: A non well formed numeric value encountered in /in/j287c on line 8 17353662
Output for 5.2.11
Notice: A non well formed numeric value encountered in /in/j287c on line 8 7578785
Output for 5.2.10
Notice: A non well formed numeric value encountered in /in/j287c on line 8 100158914
Output for 5.2.9
Notice: A non well formed numeric value encountered in /in/j287c on line 8 121888214
Output for 5.2.8
Notice: A non well formed numeric value encountered in /in/j287c on line 8 100203986
Output for 5.2.7
Notice: A non well formed numeric value encountered in /in/j287c on line 8 105930274
Output for 5.2.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 47796202
Output for 5.2.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 86322196
Output for 5.2.4
Notice: A non well formed numeric value encountered in /in/j287c on line 8 46860035
Output for 5.2.3
Notice: A non well formed numeric value encountered in /in/j287c on line 8 58724018
Output for 5.2.2
Notice: A non well formed numeric value encountered in /in/j287c on line 8 98304171
Output for 5.2.1
Notice: A non well formed numeric value encountered in /in/j287c on line 8 16745882
Output for 5.2.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 104776912
Output for 5.1.6
Notice: A non well formed numeric value encountered in /in/j287c on line 8 58582005
Output for 5.1.5
Notice: A non well formed numeric value encountered in /in/j287c on line 8 18655834
Output for 5.1.4
Notice: A non well formed numeric value encountered in /in/j287c on line 8 42593504
Output for 5.1.3
Notice: A non well formed numeric value encountered in /in/j287c on line 8 89481399
Output for 5.1.2
Notice: A non well formed numeric value encountered in /in/j287c on line 8 31444990
Output for 5.1.1
Notice: A non well formed numeric value encountered in /in/j287c on line 8 59805859
Output for 5.1.0
Notice: A non well formed numeric value encountered in /in/j287c on line 8 27571086
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5
Warning: rand() expects parameter 2 to be long, string given in /in/j287c on line 8

preferences:
157.91 ms | 402 KiB | 211 Q