3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array("one", "two", "three", "four"); $b = array("one", "two", "three", "four"); foreach ($a as &$e) { $e = $e . mt_rand(0,10); } foreach ($b as $e) { $e = $e . mt_rand(0,10); } foreach ($a as $e) { echo $e . PHP_EOL; } foreach ($b as $e) { echo $e . PHP_EOL; }
Output for 7.3.0
one2 two8 three2 three2 one two three four
Output for 7.2.13
one9 two4 three8 three8 one two three four
Output for 7.2.12
one1 two7 three2 three2 one two three four
Output for 7.2.11
one2 two2 three4 three4 one two three four
Output for 7.2.10
one4 two0 three6 three6 one two three four
Output for 7.2.9
one4 two2 three5 three5 one two three four
Output for 7.2.8
one0 two1 three3 three3 one two three four
Output for 7.2.7
one3 two4 three0 three0 one two three four
Output for 7.2.6
one8 two0 three1 three1 one two three four
Output for 7.2.5
one10 two7 three1 three1 one two three four
Output for 7.2.4
one10 two2 three3 three3 one two three four
Output for hhvm-3.19.2, 7.2.3
one9 two4 three9 three9 one two three four
Output for 7.2.2
one7 two8 three1 three1 one two three four
Output for 7.2.1
one4 two1 three9 three9 one two three four
Output for 7.2.0
one0 two1 three9 three9 one two three four
Output for 7.1.25
one8 two6 three1 three1 one two three four
Output for 7.1.24
one4 two7 three4 three4 one two three four
Output for 5.6.10, 7.1.23
one3 two3 three5 three5 one two three four
Output for 7.1.22
one3 two9 three7 three7 one two three four
Output for 7.1.21
one10 two7 three7 three7 one two three four
Output for 7.1.10, 7.1.20
one7 two8 three6 three6 one two three four
Output for 7.1.19
one7 two8 three0 three0 one two three four
Output for 7.1.18
one0 two2 three4 three4 one two three four
Output for 7.1.17
one4 two2 three2 three2 one two three four
Output for 7.1.16
one10 two0 three1 three1 one two three four
Output for 7.1.15
one2 two5 three1 three1 one two three four
Output for 7.1.14
one10 two1 three10 three10 one two three four
Output for 7.1.13
one8 two10 three3 three3 one two three four
Output for 7.1.12
one3 two6 three1 three1 one two three four
Output for 7.1.11
one0 two9 three4 three4 one two three four
Output for 7.1.9
one9 two2 three2 three2 one two three four
Output for 7.1.8
one4 two4 three2 three2 one two three four
Output for 7.1.7
one10 two7 three9 three9 one two three four
Output for 7.1.6
one9 two1 three5 three5 one two three four
Output for 7.1.5
one2 two7 three4 three4 one two three four
Output for 7.1.4
one5 two7 three10 three10 one two three four
Output for 7.1.3
one6 two4 three3 three3 one two three four
Output for 7.1.2
one7 two4 three8 three8 one two three four
Output for 7.1.1
one10 two1 three8 three8 one two three four
Output for 7.1.0
one6 two2 three3 three3 one two three four
Output for 7.0.33
one7 two2 three0 three0 one two three four
Output for 7.0.32
one5 two5 three4 three4 one two three four
Output for 7.0.31
one4 two1 three1 three1 one two three four
Output for 7.0.30
one0 two10 three9 three9 one two three four
Output for 7.0.29
one6 two7 three8 three8 one two three four
Output for 7.0.28
one5 two4 three4 three4 one two three four
Output for 7.0.27
one4 two5 three1 three1 one two three four
Output for 7.0.26
one3 two1 three10 three10 one two three four
Output for 7.0.25
one8 two0 three3 three3 one two three four
Output for 7.0.24
one2 two7 three5 three5 one two three four
Output for 7.0.23
one9 two0 three3 three3 one two three four
Output for 7.0.22
one0 two3 three0 three0 one two three four
Output for 7.0.21
one2 two6 three8 three8 one two three four
Output for 7.0.20
one10 two8 three4 three4 one two three four
Output for 7.0.19
one10 two9 three2 three2 one two three four
Output for 7.0.18
one2 two2 three7 three7 one two three four
Output for 7.0.17
one3 two0 three6 three6 one two three four
Output for 7.0.16
one8 two6 three10 three10 one two three four
Output for 7.0.15
one2 two2 three1 three1 one two three four
Output for 7.0.14
one2 two3 three10 three10 one two three four
Output for 7.0.13
one9 two7 three10 three10 one two three four
Output for 7.0.12
one3 two2 three10 three10 one two three four
Output for 7.0.11
one4 two9 three10 three10 one two three four
Output for 7.0.10
one6 two9 three9 three9 one two three four
Output for 7.0.9
one6 two3 three8 three8 one two three four
Output for 7.0.8
one1 two0 three1 three1 one two three four
Output for 7.0.7
one3 two8 three3 three3 one two three four
Output for 7.0.6
one5 two9 three5 three5 one two three four
Output for 7.0.5
one9 two10 three10 three10 one two three four
Output for 7.0.4
one1 two8 three1 three1 one two three four
Output for 7.0.3
one10 two10 three3 three3 one two three four
Output for 7.0.2
one7 two9 three9 three9 one two three four
Output for 7.0.1
one3 two6 three7 three7 one two three four
Output for 7.0.0
one1 two1 three10 three10 one two three four
Output for hhvm-3.22.0
one2 two0 three4 three4 one two three four
Output for hhvm-3.21.3
one9 two9 three0 three0 one two three four
Output for hhvm-3.21.0
one10 two7 three2 three2 one two three four
Output for hhvm-3.20.2
one3 two6 three9 three9 one two three four
Output for hhvm-3.18.5
one6 two7 three6 three6 one two three four
Output for hhvm-3.18.4
one0 two0 three2 three2 one two three four
Output for hhvm-3.17.3
one10 two6 three4 three4 one two three four
Output for hhvm-3.15.4
one6 two6 three2 three2 one two three four
Output for hhvm-3.13.2
one5 two6 three6 three6 one two three four
Output for hhvm-3.12.14
one7 two9 three3 three3 one two three four
Output for 5.6.38
one9 two10 three2 three2 one two three four
Output for 5.6.37
one4 two5 three3 three3 one two three four
Output for 5.6.36
one1 two5 three7 three7 one two three four
Output for 5.6.35
one6 two10 three0 three0 one two three four
Output for 5.6.34
one6 two1 three6 three6 one two three four
Output for 5.6.33
one5 two9 three10 three10 one two three four
Output for 5.6.32
one9 two8 three8 three8 one two three four
Output for 5.6.31
one6 two2 three10 three10 one two three four
Output for 5.6.21, 5.6.30
one2 two10 three3 three3 one two three four
Output for 5.6.29
one8 two3 three7 three7 one two three four
Output for 5.6.28
one7 two0 three7 three7 one two three four
Output for 5.6.27
one7 two1 three5 three5 one two three four
Output for 5.6.26
one7 two1 three3 three3 one two three four
Output for 5.6.25
one9 two6 three7 three7 one two three four
Output for 5.6.24
one7 two4 three0 three0 one two three four
Output for 5.6.23
one0 two2 three0 three0 one two three four
Output for 5.6.22
one4 two4 three10 three10 one two three four
Output for 5.6.20
one4 two6 three4 three4 one two three four
Output for 5.6.19
one9 two8 three2 three2 one two three four
Output for 5.6.18
one10 two4 three5 three5 one two three four
Output for 5.6.17
one1 two5 three8 three8 one two three four
Output for 5.6.16
one7 two3 three9 three9 one two three four
Output for 5.6.15
one6 two8 three5 three5 one two three four
Output for 5.6.14
one0 two5 three7 three7 one two three four
Output for 5.6.13
one9 two5 three1 three1 one two three four
Output for 5.6.12
one5 two5 three10 three10 one two three four
Output for 5.6.11
one0 two3 three4 three4 one two three four
Output for 5.6.9
one0 two10 three2 three2 one two three four
Output for 5.6.8
one3 two4 three6 three6 one two three four
Output for 5.6.7
one4 two9 three2 three2 one two three four
Output for 5.6.6
one3 two5 three7 three7 one two three four
Output for 5.6.5
one0 two10 three6 three6 one two three four
Output for 5.6.4
one1 two2 three5 three5 one two three four
Output for 5.6.3
one9 two7 three3 three3 one two three four
Output for 5.6.2
one1 two5 three4 three4 one two three four
Output for 5.6.1
one6 two7 three10 three10 one two three four
Output for 5.6.0
one5 two8 three8 three8 one two three four