3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(1,2); for ($x=0; $x<=20; $x++){ echo($array[mt_rand(0,1)]); } ?>
Output for 7.1.0
222111121222121111221
Output for 7.0.14
121121111111222221122
Output for 7.0.6
122112112222222221122
Output for 7.0.5
221211112112121121211
Output for 7.0.4
221212122122212111112
Output for 7.0.3
122121222211222111112
Output for 7.0.2
122211221122121222121
Output for 7.0.1
212122121221211121111
Output for 7.0.0
211121111112211212122
Output for hhvm-3.12.0
212111112222211222121
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
121211122222112222211
Output for 5.6.21
222222212112211111121
Output for 5.6.20
111121112221211212212
Output for 5.6.19
112122112121121211111
Output for 5.6.18
221212111111221221111
Output for 5.6.17
121121122221222211112
Output for 5.6.16
111221121221121221121
Output for 5.6.15
112211112212121121222
Output for 5.6.14
122111212221111211111
Output for 5.6.13
122221111211121212211
Output for 5.6.12
122122111122211221122
Output for 5.6.11
211212122212211121211
Output for 5.6.10
211211121212222221222
Output for 5.6.9
112221121112211211211
Output for 4.4.1, 5.6.8
222212122121112112212
Output for 5.5.35
212212212112222221122
Output for 5.5.34
112111121121111111121
Output for 5.5.33
221111111111221212112
Output for 5.5.32
122211211221212222212
Output for 5.5.31
212111211212212122122
Output for 5.5.30
112212112222212212122
Output for 5.5.29
221112212212221222111
Output for 5.5.28
221121211222222112212
Output for 5.5.27
112122121122112222211
Output for 5.5.26
111112221122121222111
Output for 5.5.25
222112212211112121212
Output for 5.5.24
222112211221222212111
Output for 5.4.45
212222212121222112111
Output for 5.4.44
221112211222122112212
Output for 5.4.43
222222121111222121212
Output for 5.4.42
212121111111121121111
Output for 5.4.41
111121222122221222122
Output for 5.4.40
112111122111212122121
Output for 5.4.39
222221121222212122211
Output for 5.4.38
211121211222221211121
Output for 5.4.37
222122121121122121221
Output for 5.4.36
112111122211221112121
Output for 5.4.35
111122122212212212222
Output for 5.4.34
112111212121112112211
Output for 5.4.32
222221121212212111121
Output for 5.4.31
122111111222122212211
Output for 5.4.30
221222112111212211212
Output for 5.4.29
111122111211222122222
Output for 5.4.28
211121222122222212111
Output for 5.4.27
122211111121221111212
Output for 5.4.26
122112222111122212221
Output for 5.4.25
211121112211111221221
Output for 5.4.24
212121112221111222221
Output for 5.4.23
211221122212222211121
Output for 5.4.22
121121211122122122112
Output for 5.4.21
221122222122211112112
Output for 5.4.20
111212122221121212222
Output for 5.4.19
222221211221212222122
Output for 5.4.18
211212222211222122211
Output for 5.4.17
121111122111221211112
Output for 5.4.16
121112211221221222222
Output for 5.4.15
211111122112221222221
Output for 5.4.14
112222211211122122222
Output for 5.4.13
111221112221121221121
Output for 5.4.12
222222121212121111221
Output for 5.4.11
221121211111212111112
Output for 5.4.10
212222211111221121112
Output for 5.4.9
122222111111111221112
Output for 5.4.8
122121211112212221212
Output for 5.4.7
212221221121112111112
Output for 5.4.6
222111211211112121121
Output for 5.4.5
221122212222222112222
Output for 5.4.4
221221121211122221112
Output for 5.4.3
221222112121121112211
Output for 5.4.2
122221221221211111122
Output for 5.4.1
221112111212112211221
Output for 5.4.0
122212221121122121112
Output for 5.3.29
211122222112212112222
Output for 5.3.28
122122122111222222112
Output for 5.3.27
222111211222122221211
Output for 5.3.26
122122222121121121122
Output for 5.3.25
222221112212111111122
Output for 5.3.24
222121111111111121112
Output for 5.3.23
121222212221212211112
Output for 5.3.22
222211221221221122221
Output for 5.3.21
121122222211222211212
Output for 5.3.20
211211211122212121112
Output for 5.3.19
221221222111122211211
Output for 5.3.18
112212221121111212122
Output for 5.3.17
212222112212112111221
Output for 5.3.16
121122121221112211212
Output for 5.3.15
211221111112212121112
Output for 5.3.14
212112222121121222211
Output for 5.3.13
221111122112212221112
Output for 5.3.12
212112111211212122222
Output for 5.3.11
111121222111212211212
Output for 5.3.10
122121221121212121212
Output for 5.3.9
211211222222111212111
Output for 5.3.8
222212122222212222211
Output for 5.3.7
221121112122222212121
Output for 5.3.6
221222122112222122112
Output for 5.3.5
121211111112221211222
Output for 5.3.4
212121112211111212121
Output for 5.3.3
212222221121211221212
Output for 5.3.2
221211121111222122121
Output for 5.3.1
121111122221121222222
Output for 5.3.0
211121212221111212222
Output for 5.2.17
221122112122121212222
Output for 5.2.16
212121212121221221211
Output for 5.2.15
111222122211121211122
Output for 5.2.14
211221111122111112122
Output for 5.2.13
212211111121111221121
Output for 5.2.12
121221221212212221112
Output for 5.2.11
211221122211211211211
Output for 5.2.10
112211212211221111212
Output for 5.2.9
222111121212211221121
Output for 5.2.8
112222212212222221222
Output for 5.2.7
112211221221212122212
Output for 5.2.6
211212222122212211112
Output for 5.2.5
212122211221112212222
Output for 5.2.4
122211112221211221122
Output for 5.2.3
211112212122222122222
Output for 5.2.2
222222121222121221211
Output for 5.2.1
121211112112112121111
Output for 5.2.0
221112112112222212221
Output for 5.1.6
122112122122122122111
Output for 5.1.5
122122221121211112211
Output for 5.1.4
122122212122222212111
Output for 5.1.3
212122221222111121221
Output for 5.1.2
221122221222222212121
Output for 5.1.1
221122121211122111112
Output for 5.1.0
121212212122112222212
Output for 5.0.5
221222212121121221212
Output for 5.0.4
222221111112222212112
Output for 5.0.3
222212211122222221122
Output for 5.0.2
121122121222122212221
Output for 5.0.1
222111211222122122121
Output for 5.0.0
111212122121121111112
Output for 4.4.9
112122212121211211121
Output for 4.4.8
122122211221212211222
Output for 4.4.7
111221121122211121112
Output for 4.4.6
222111111121212112211
Output for 4.4.5
212222122111121222122
Output for 4.4.4
222121211211122212111
Output for 4.4.3
111222111112211211112
Output for 4.4.2
112112121122122111221
Output for 4.4.0
112111121212121122222
Output for 4.3.11
111221122211212221211
Output for 4.3.10
121121211212212222122
Output for 4.3.9
121221212221122111122
Output for 4.3.8
112221211121122122222
Output for 4.3.7
121111112112121211212
Output for 4.3.6
221221222212111121122
Output for 4.3.5
212221222111212212221
Output for 4.3.4
211122221212221212211
Output for 4.3.3
112122112112111111221
Output for 4.3.2
111211211221111212111
Output for 4.3.1
111212112211111222121
Output for 4.3.0
122122111112211111112