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); $viens = '15' + '0xF'; var_dump($viens); if ('15' == '0xF') { echo 'bet vienaadi'; }
based on KSVV2
Output for 7.1.0
NULL NULL NULL NULL string(4) "kakb" Warning: A non-numeric value encountered in /in/pnQFr on line 14 int(1) string(2) "aa" Notice: A non well formed numeric value encountered in /in/pnQFr on line 21 int(15)
Output for 7.0.0 - 7.0.14
NULL NULL NULL NULL string(4) "kakb" int(1) string(2) "aa" int(15)
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) string(2) "aa" int(30) bet vienaadi
Output for 5.1.0 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/pnQFr on line 2
Process exited with code 255.