3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($a, $b) = 'kaka'; var_dump($a); var_dump($b); $kaka = 'kaka'; list($a, $b) = $kaka; var_dump($a); var_dump($b); $kaka++; var_dump($kaka); $test = $kaka + 1; var_dump($test);
based on sc6kI
Output for 7.1.0
NULL NULL NULL NULL string(4) "kakb" Warning: A non-numeric value encountered in /in/JbIig on line 14 int(1)
Output for 7.0.0 - 7.0.14
NULL NULL NULL NULL string(4) "kakb" int(1)
Output for 4.3.0 - 5.0.5, 5.2.2 - 5.6.28, hhvm-3.10.0 - 3.12.0
NULL NULL string(1) "k" string(1) "a" string(4) "kakb" int(1)
Output for 5.1.0 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/JbIig on line 2
Process exited with code 255.