3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range= range('A','Z'); foreach (array_rand($range,2) as $key) { echo $range[$key] . '<br/>' . PHP_EOL; } ?>
Output for 5.3.14, 5.4.41, 7.1.0
A<br/> S<br/>
Output for 7.0.7 - 7.0.14
J<br/> N<br/>
Output for 5.4.35, 7.0.6
T<br/> Z<br/>
Output for 7.0.5
D<br/> Z<br/>
Output for 7.0.4
S<br/> V<br/>
Output for 5.5.28, 5.6.8, 7.0.3
J<br/> W<br/>
Output for 7.0.2
D<br/> P<br/>
Output for 7.0.1
A<br/> X<br/>
Output for 5.5.23, 7.0.0
H<br/> N<br/>
Output for hhvm-3.12.0
K<br/> I<br/>
Output for hhvm-3.10.0
X<br/> G<br/>
Output for 5.6.28
R<br/> Y<br/>
Output for 5.6.22
A<br/> C<br/>
Output for 5.6.21
F<br/> G<br/>
Output for 5.6.20
P<br/> Q<br/>
Output for 5.4.23, 5.6.19
N<br/> Y<br/>
Output for 5.6.18
P<br/> S<br/>
Output for 5.6.17
O<br/> Z<br/>
Output for 5.6.16
F<br/> T<br/>
Output for 5.6.15
E<br/> G<br/>
Output for 5.6.14
B<br/> G<br/>
Output for 5.6.12 - 5.6.13
N<br/> W<br/>
Output for 5.3.5, 5.5.32, 5.6.11
J<br/> T<br/>
Output for 5.3.25, 5.4.42, 5.6.10
O<br/> S<br/>
Output for 5.4.14, 5.6.9
B<br/> H<br/>
Output for 5.4.1, 5.6.6 - 5.6.7
F<br/> N<br/>
Output for 5.6.5
F<br/> R<br/>
Output for 5.5.7, 5.6.4
H<br/> I<br/>
Output for 5.6.3
J<br/> S<br/>
Output for 5.6.2
H<br/> U<br/>
Output for 5.6.1
Y<br/> Z<br/>
Output for 5.6.0
G<br/> O<br/>
Output for 5.5.36
H<br/> T<br/>
Output for 5.5.35
B<br/> N<br/>
Output for 5.5.34
K<br/> Z<br/>
Output for 5.5.33
E<br/> J<br/>
Output for 5.3.20, 5.5.31
L<br/> Z<br/>
Output for 5.4.9, 5.5.30
F<br/> O<br/>
Output for 5.5.29
Q<br/> W<br/>
Output for 5.5.27
E<br/> U<br/>
Output for 5.5.26
L<br/> V<br/>
Output for 5.3.29, 5.5.25
C<br/> Y<br/>
Output for 5.5.24
H<br/> K<br/>
Output for 5.2.14, 5.5.22
Q<br/> Z<br/>
Output for 5.0.5, 5.5.21
A<br/> G<br/>
Output for 5.4.11, 5.5.20
D<br/> N<br/>
Output for 5.5.19
F<br/> W<br/>
Output for 5.5.18
N<br/> R<br/>
Output for 5.2.10, 5.5.16
R<br/> S<br/>
Output for 5.4.18, 5.4.25, 5.5.15
B<br/> K<br/>
Output for 5.5.14
P<br/> Z<br/>
Output for 5.5.13
M<br/> V<br/>
Output for 5.3.23, 5.5.12
B<br/> M<br/>
Output for 5.5.11
N<br/> V<br/>
Output for 5.5.10
X<br/> Y<br/>
Output for 5.5.9
L<br/> R<br/>
Output for 5.5.8
G<br/> N<br/>
Output for 5.3.24, 5.4.17, 5.5.6
E<br/> L<br/>
Output for 4.4.7, 5.5.5
R<br/> W<br/>
Output for 5.4.16, 5.5.4
E<br/> S<br/>
Output for 5.4.27, 5.4.44, 5.5.3
V<br/> W<br/>
Output for 5.5.2
G<br/> H<br/>
Output for 5.5.1
B<br/> Y<br/>
Output for 5.5.0
M<br/> P<br/>
Output for 5.4.45
R<br/> V<br/>
Output for 5.3.17, 5.4.43
D<br/> U<br/>
Output for 5.4.40
Q<br/> V<br/>
Output for 5.4.39
A<br/> J<br/>
Output for 5.4.38
B<br/> Q<br/>
Output for 5.4.37
J<br/> M<br/>
Output for 5.4.36
L<br/> X<br/>
Output for 5.4.34
I<br/> J<br/>
Output for 5.4.32
E<br/> W<br/>
Output for 5.4.31
K<br/> Q<br/>
Output for 5.4.6, 5.4.30
H<br/> J<br/>
Output for 5.4.29
O<br/> V<br/>
Output for 5.4.28
A<br/> T<br/>
Output for 5.4.26
D<br/> F<br/>
Output for 5.4.24
P<br/> X<br/>
Output for 5.3.3, 5.4.22
D<br/> Q<br/>
Output for 5.4.21
C<br/> M<br/>
Output for 5.4.20
A<br/> Q<br/>
Output for 5.4.19
C<br/> X<br/>
Output for 5.4.15
C<br/> E<br/>
Output for 5.2.3, 5.4.13
M<br/> S<br/>
Output for 5.4.12
R<br/> X<br/>
Output for 5.4.10
V<br/> Y<br/>
Output for 5.4.8
J<br/> P<br/>
Output for 5.4.7
K<br/> P<br/>
Output for 5.4.5
X<br/> Z<br/>
Output for 5.2.11, 5.4.4
A<br/> Z<br/>
Output for 5.4.3
U<br/> V<br/>
Output for 5.3.0, 5.4.2
A<br/> Y<br/>
Output for 5.3.6, 5.4.0
C<br/> W<br/>
Output for 5.2.16, 5.3.28
A<br/> M<br/>
Output for 5.3.27
A<br/> N<br/>
Output for 5.3.26
Q<br/> S<br/>
Output for 5.3.22
F<br/> Y<br/>
Output for 5.3.18, 5.3.21
E<br/> O<br/>
Output for 5.3.19
O<br/> R<br/>
Output for 5.3.16
M<br/> U<br/>
Output for 5.3.15
G<br/> K<br/>
Output for 5.3.13
L<br/> S<br/>
Output for 5.3.12
P<br/> W<br/>
Output for 5.3.11
G<br/> W<br/>
Output for 5.3.10
U<br/> W<br/>
Output for 5.3.9
I<br/> S<br/>
Output for 5.3.8
B<br/> P<br/>
Output for 4.4.8, 5.3.7
G<br/> Y<br/>
Output for 5.3.4
S<br/> T<br/>
Output for 5.3.2
D<br/> J<br/>
Output for 5.3.1
J<br/> L<br/>
Output for 5.2.17
C<br/> R<br/>
Output for 5.2.15
O<br/> U<br/>
Output for 5.2.13
I<br/> R<br/>
Output for 5.2.12
K<br/> V<br/>
Output for 5.2.9
B<br/> W<br/>
Output for 5.2.8
C<br/> I<br/>
Output for 5.2.7
Z<br/> B<br/>
Output for 5.2.6
Z<br/> M<br/>
Output for 4.3.11, 5.2.5
L<br/> U<br/>
Output for 4.4.5, 5.2.4
O<br/> Q<br/>
Output for 5.2.2
E<br/> H<br/>
Output for 5.2.1
M<br/> T<br/>
Output for 5.2.0
Q<br/> R<br/>
Output for 5.1.6
A<br/> V<br/>
Output for 5.0.3, 5.1.5
F<br/> I<br/>
Output for 5.1.4
A<br/> O<br/>
Output for 5.1.3
Z<br/> E<br/>
Output for 5.1.2
L<br/> Q<br/>
Output for 5.1.1
K<br/> S<br/>
Output for 5.1.0
P<br/> V<br/>
Output for 5.0.4
B<br/> S<br/>
Output for 5.0.2
I<br/> U<br/>
Output for 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 L<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 V<br/>PHP_EOL
Output for 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 B<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 X<br/>PHP_EOL
Output for 4.4.9
P<br/> U<br/>
Output for 4.4.6
D<br/> V<br/>
Output for 4.4.4
C<br/> L<br/>
Output for 4.4.3
F<br/> H<br/>
Output for 4.4.2
J<br/> Z<br/>
Output for 4.4.1
O<br/> X<br/>
Output for 4.4.0
M<br/> W<br/>
Output for 4.3.10
G<br/> V<br/>
Output for 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 I<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 O<br/>PHP_EOL
Output for 4.3.8
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 S<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 Y<br/>PHP_EOL
Output for 4.3.7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 E<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 P<br/>PHP_EOL
Output for 4.3.6
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 A<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 L<br/>PHP_EOL
Output for 4.3.5
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 A<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 G<br/>PHP_EOL
Output for 4.3.3 - 4.3.4
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 S<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 U<br/>PHP_EOL
Output for 4.3.2
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 F<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 N<br/>PHP_EOL
Output for 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 A<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 K<br/>PHP_EOL
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 G<br/>PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/A9Uh7 on line 5 X<br/>PHP_EOL