3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r = array(0,0,0,0,0,0,0,0,0,0,0); for ($i=0;$i<1000000;$i++) { $n = rand(0,100000); if ($n<=10) { $r[$n]++; } } print_r($r); $r = array(0,0,0,0,0,0,0,0,0,0,0); for ($i=0;$i<1000000;$i++) { $n = mt_rand(0,100000); if ($n<=10) { $r[$n]++; } }

Abusive script

This script was stopped while abusing our resources

Output for 5.4.28
Array ( [0] => 10 [1] => 7 [2] => 9 [3] => 9 [4] => 11 [5] => 7 [6] => 8 [7] => 8 [8] => 8 [9] => 7 [10] => 5 )
Output for 5.4.27
Array ( [0] => 17 [1] => 8 [2] => 11 [3] => 15 [4] => 7 [5] => 15 [6] => 15 [7] => 10 [8] => 15 [9] => 12 [10] => 8 )
Output for 5.4.26
Array ( [0] => 12 [1] => 13 [2] => 12 [3] => 14 [4] => 8 [5] => 6 [6] => 13 [7] => 8 [8] => 12 [9] => 7 [10] => 5 )
Output for 5.4.25
Array ( [0] => 4 [1] => 8 [2] => 7 [3] => 7 [4] => 10 [5] => 12 [6] => 9 [7] => 8 [8] => 14 [9] => 12 [10] => 10 )
Output for 5.4.24
Array ( [0] => 6 [1] => 11 [2] => 9 [3] => 6 [4] => 8 [5] => 9 [6] => 9 [7] => 6 [8] => 12 [9] => 6 [10] => 14 )
Output for 5.4.23
Array ( [0] => 12 [1] => 7 [2] => 8 [3] => 10 [4] => 10 [5] => 11 [6] => 14 [7] => 10 [8] => 8 [9] => 10 [10] => 11 )
Output for 5.4.22
Array ( [0] => 13 [1] => 13 [2] => 11 [3] => 14 [4] => 7 [5] => 15 [6] => 8 [7] => 10 [8] => 15 [9] => 6 [10] => 10 )
Output for 5.4.21
Array ( [0] => 16 [1] => 14 [2] => 11 [3] => 8 [4] => 15 [5] => 17 [6] => 5 [7] => 9 [8] => 11 [9] => 10 [10] => 7 )
Output for 5.4.20
Array ( [0] => 7 [1] => 7 [2] => 9 [3] => 4 [4] => 12 [5] => 9 [6] => 13 [7] => 10 [8] => 4 [9] => 11 [10] => 10 )
Output for 5.4.19
Array ( [0] => 19 [1] => 11 [2] => 9 [3] => 7 [4] => 9 [5] => 12 [6] => 7 [7] => 10 [8] => 6 [9] => 10 [10] => 12 )
Output for 5.4.18
Array ( [0] => 15 [1] => 13 [2] => 8 [3] => 7 [4] => 3 [5] => 12 [6] => 12 [7] => 15 [8] => 8 [9] => 14 [10] => 7 )
Output for 5.4.17
Array ( [0] => 13 [1] => 6 [2] => 10 [3] => 5 [4] => 9 [5] => 5 [6] => 5 [7] => 14 [8] => 9 [9] => 8 [10] => 6 )
Output for 5.4.16
Array ( [0] => 12 [1] => 10 [2] => 10 [3] => 9 [4] => 6 [5] => 7 [6] => 8 [7] => 7 [8] => 12 [9] => 14 [10] => 11 )
Output for 5.4.15
Array ( [0] => 10 [1] => 9 [2] => 13 [3] => 7 [4] => 12 [5] => 9 [6] => 11 [7] => 4 [8] => 8 [9] => 8 [10] => 13 )
Output for 5.4.14
Array ( [0] => 15 [1] => 11 [2] => 12 [3] => 10 [4] => 8 [5] => 10 [6] => 13 [7] => 9 [8] => 14 [9] => 9 [10] => 3 )
Output for 5.4.13
Array ( [0] => 12 [1] => 7 [2] => 10 [3] => 11 [4] => 9 [5] => 10 [6] => 11 [7] => 10 [8] => 10 [9] => 5 [10] => 8 )
Output for 5.4.12
Array ( [0] => 8 [1] => 14 [2] => 12 [3] => 10 [4] => 10 [5] => 8 [6] => 12 [7] => 5 [8] => 13 [9] => 10 [10] => 10 )
Output for 5.4.11
Array ( [0] => 12 [1] => 5 [2] => 10 [3] => 13 [4] => 5 [5] => 8 [6] => 10 [7] => 11 [8] => 10 [9] => 13 [10] => 6 )
Output for 5.4.10
Array ( [0] => 11 [1] => 10 [2] => 12 [3] => 10 [4] => 4 [5] => 8 [6] => 5 [7] => 11 [8] => 7 [9] => 13 [10] => 3 )
Output for 5.4.9
Array ( [0] => 11 [1] => 10 [2] => 14 [3] => 11 [4] => 13 [5] => 9 [6] => 8 [7] => 10 [8] => 7 [9] => 17 [10] => 11 )
Output for 5.4.8
Array ( [0] => 7 [1] => 14 [2] => 7 [3] => 8 [4] => 10 [5] => 7 [6] => 11 [7] => 3 [8] => 12 [9] => 11 [10] => 12 )
Output for 5.4.7
Array ( [0] => 9 [1] => 13 [2] => 9 [3] => 10 [4] => 8 [5] => 13 [6] => 5 [7] => 12 [8] => 9 [9] => 14 [10] => 10 )
Output for 5.4.6
Array ( [0] => 5 [1] => 16 [2] => 9 [3] => 5 [4] => 8 [5] => 9 [6] => 15 [7] => 10 [8] => 9 [9] => 6 [10] => 5 )
Output for 5.4.5
Array ( [0] => 19 [1] => 8 [2] => 10 [3] => 9 [4] => 13 [5] => 5 [6] => 10 [7] => 13 [8] => 13 [9] => 8 [10] => 5 )
Output for 5.4.4
Array ( [0] => 14 [1] => 5 [2] => 10 [3] => 11 [4] => 7 [5] => 8 [6] => 10 [7] => 11 [8] => 14 [9] => 13 [10] => 14 )
Output for 5.4.3
Array ( [0] => 9 [1] => 6 [2] => 14 [3] => 6 [4] => 14 [5] => 6 [6] => 8 [7] => 5 [8] => 10 [9] => 7 [10] => 12 )
Output for 5.4.2
Array ( [0] => 11 [1] => 9 [2] => 6 [3] => 13 [4] => 13 [5] => 9 [6] => 3 [7] => 13 [8] => 9 [9] => 10 [10] => 9 )
Output for 5.4.1
Array ( [0] => 16 [1] => 9 [2] => 9 [3] => 11 [4] => 12 [5] => 8 [6] => 6 [7] => 16 [8] => 11 [9] => 10 [10] => 10 )
Output for 5.4.0
Array ( [0] => 11 [1] => 8 [2] => 9 [3] => 11 [4] => 9 [5] => 12 [6] => 7 [7] => 11 [8] => 14 [9] => 9 [10] => 13 )
Output for 5.3.28
Array ( [0] => 9 [1] => 3 [2] => 8 [3] => 14 [4] => 8 [5] => 5 [6] => 8 [7] => 9 [8] => 5 [9] => 14 [10] => 8 )
Output for 5.3.27
Array ( [0] => 5 [1] => 9 [2] => 9 [3] => 13 [4] => 5 [5] => 9 [6] => 6 [7] => 8 [8] => 11 [9] => 11 [10] => 10 )
Output for 5.3.26
Array ( [0] => 7 [1] => 9 [2] => 12 [3] => 5 [4] => 14 [5] => 8 [6] => 4 [7] => 8 [8] => 4 [9] => 16 [10] => 8 )
Output for 5.3.25
Array ( [0] => 5 [1] => 8 [2] => 17 [3] => 10 [4] => 6 [5] => 8 [6] => 16 [7] => 9 [8] => 9 [9] => 7 [10] => 7 )
Output for 5.3.24
Array ( [0] => 9 [1] => 7 [2] => 8 [3] => 9 [4] => 13 [5] => 10 [6] => 11 [7] => 17 [8] => 12 [9] => 12 [10] => 6 )
Output for 5.3.23
Array ( [0] => 9 [1] => 11 [2] => 11 [3] => 9 [4] => 8 [5] => 9 [6] => 6 [7] => 14 [8] => 8 [9] => 10 [10] => 13 )
Output for 5.3.22
Array ( [0] => 10 [1] => 15 [2] => 6 [3] => 12 [4] => 12 [5] => 17 [6] => 8 [7] => 11 [8] => 11 [9] => 17 [10] => 8 )
Output for 5.3.21
Array ( [0] => 5 [1] => 13 [2] => 8 [3] => 8 [4] => 10 [5] => 11 [6] => 17 [7] => 13 [8] => 14 [9] => 12 [10] => 9 )
Output for 5.3.20
Array ( [0] => 7 [1] => 8 [2] => 12 [3] => 12 [4] => 8 [5] => 10 [6] => 8 [7] => 7 [8] => 9 [9] => 11 [10] => 11 )
Output for 5.3.19
Array ( [0] => 9 [1] => 8 [2] => 10 [3] => 7 [4] => 6 [5] => 15 [6] => 14 [7] => 13 [8] => 8 [9] => 9 [10] => 17 )
Output for 5.3.18
Array ( [0] => 6 [1] => 12 [2] => 10 [3] => 12 [4] => 6 [5] => 10 [6] => 7 [7] => 15 [8] => 5 [9] => 9 [10] => 11 )
Output for 5.3.17
Array ( [0] => 7 [1] => 11 [2] => 6 [3] => 8 [4] => 10 [5] => 15 [6] => 8 [7] => 10 [8] => 7 [9] => 15 [10] => 10 )
Output for 5.3.16
Array ( [0] => 8 [1] => 5 [2] => 9 [3] => 10 [4] => 12 [5] => 9 [6] => 11 [7] => 10 [8] => 8 [9] => 14 [10] => 7 )
Output for 5.3.15
Array ( [0] => 5 [1] => 14 [2] => 11 [3] => 5 [4] => 10 [5] => 10 [6] => 8 [7] => 12 [8] => 9 [9] => 11 [10] => 18 )
Output for 5.3.14
Array ( [0] => 8 [1] => 8 [2] => 11 [3] => 11 [4] => 14 [5] => 17 [6] => 13 [7] => 7 [8] => 14 [9] => 5 [10] => 6 )
Output for 5.3.13
Array ( [0] => 8 [1] => 11 [2] => 10 [3] => 11 [4] => 11 [5] => 14 [6] => 10 [7] => 5 [8] => 8 [9] => 13 [10] => 4 )
Output for 5.3.12
Array ( [0] => 15 [1] => 10 [2] => 8 [3] => 9 [4] => 12 [5] => 6 [6] => 13 [7] => 9 [8] => 12 [9] => 9 [10] => 14 )
Output for 5.3.11
Array ( [0] => 18 [1] => 9 [2] => 8 [3] => 12 [4] => 14 [5] => 12 [6] => 11 [7] => 7 [8] => 5 [9] => 5 [10] => 14 )
Output for 5.3.10
Array ( [0] => 9 [1] => 13 [2] => 7 [3] => 12 [4] => 8 [5] => 14 [6] => 5 [7] => 9 [8] => 6 [9] => 14 [10] => 10 )
Output for 5.3.9
Array ( [0] => 11 [1] => 9 [2] => 12 [3] => 12 [4] => 11 [5] => 9 [6] => 11 [7] => 16 [8] => 10 [9] => 6 [10] => 9 )
Output for 5.3.8
Array ( [0] => 14 [1] => 7 [2] => 6 [3] => 8 [4] => 11 [5] => 13 [6] => 8 [7] => 3 [8] => 11 [9] => 20 [10] => 8 )
Output for 5.3.7
Array ( [0] => 13 [1] => 7 [2] => 9 [3] => 6 [4] => 10 [5] => 3 [6] => 13 [7] => 12 [8] => 5 [9] => 6 [10] => 8 )