3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.0
one2 two5 three9 three9 one two three four
Output for 7.1.9, 7.3.12
one9 two2 three2 three2 one two three four
Output for 7.3.11
one1 two0 three4 three4 one two three four
Output for 7.3.10
one4 two10 three4 three4 one two three four
Output for 7.3.9
one10 two2 three8 three8 one two three four
Output for 7.3.8
one2 two10 three10 three10 one two three four
Output for 7.3.7
one6 two3 three5 three5 one two three four
Output for 7.3.6
one6 two8 three3 three3 one two three four
Output for 7.3.5
one6 two0 three7 three7 one two three four
Output for 7.3.4
one8 two7 three1 three1 one two three four
Output for 7.3.3
one7 two6 three10 three10 one two three four
Output for 7.2.3, 7.3.2
one9 two4 three9 three9 one two three four
Output for 7.3.1
one2 two0 three1 three1 one two three four
Output for 7.3.0
one7 two6 three6 three6 one two three four
Output for 7.2.25
one10 two7 three8 three8 one two three four
Output for 7.2.9, 7.2.24
one4 two2 three5 three5 one two three four
Output for 7.2.23
one2 two9 three4 three4 one two three four
Output for 7.2.22
one1 two9 three2 three2 one two three four
Output for 7.2.21
one1 two9 three0 three0 one two three four
Output for 7.2.20
one3 two5 three10 three10 one two three four
Output for 7.2.19
one6 two6 three10 three10 one two three four
Output for 7.2.18
one10 two8 three8 three8 one two three four
Output for 7.2.17
one4 two2 three3 three3 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.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 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.33
one1 two10 three5 three5 one two three four
Output for 7.1.32
one2 two2 three5 three5 one two three four
Output for 7.1.31
one6 two8 three0 three0 one two three four
Output for 7.1.30
one9 two2 three1 three1 one two three four
Output for 7.1.29
one9 two8 three10 three10 one two three four
Output for 7.1.28
one3 two2 three8 three8 one two three four
Output for 7.1.27
one0 two7 three5 three5 one two three four
Output for 7.1.26
one2 two2 three2 three2 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.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 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

preferences:
123.71 ms | 402 KiB | 149 Q