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); $z = 'z'; $z++; var_dump($z);
based on JbIig
Output for 7.1.0
NULL NULL NULL NULL string(4) "kakb" Warning: A non-numeric value encountered in /in/KSVV2 on line 14 int(1) string(2) "aa"
Output for 7.0.0 - 7.0.14
NULL NULL NULL NULL string(4) "kakb" int(1) string(2) "aa"
Output for 4.3.0 - 5.0.5, 5.2.2 - 5.6.28
NULL NULL string(1) "k" string(1) "a" string(4) "kakb" int(1) string(2) "aa"
Output for 5.1.0 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/KSVV2 on line 2
Process exited with code 255.