3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var1 = ""; $var2 = ""; $var1[0] = $var2[0] = "1"; $var1[1] = $var2[1] = "2"; $var1[2] = "2"; $var2[2] = "3"; $var1[3] = $var2[3] = "5"; echo 'Var1: ' . $var1 . ', Var2: ' . $var2;
Output for 7.1.0
Var1: 1225, Var2: 1235
Output for 5.4.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.0.14
Notice: Array to string conversion in /in/NdIhi on line 11 Notice: Array to string conversion in /in/NdIhi on line 11 Var1: Array, Var2: Array
Output for hhvm-3.12.0
Notice: Array to string conversion in /in/NdIhi on line -1 Notice: Array to string conversion in /in/NdIhi on line -1 Var1: Array, Var2: Array
Output for 4.3.0 - 5.3.29
Var1: Array, Var2: Array