3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $query= " INSERT INTO `mytable` (`id`, `type`, `data`) VALUES ('$id', '$type', '$data') ; SELECT * FROM `mytable` WHERE `type` = '$type' ORDER BY DESC LIMIT 10 ;";
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: id in /in/BiUFG on line 4 Notice: Undefined variable: type in /in/BiUFG on line 4 Notice: Undefined variable: data in /in/BiUFG on line 4 Notice: Undefined variable: type in /in/BiUFG on line 8
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: id in /in/BiUFG on line 11 Notice: Undefined variable: type in /in/BiUFG on line 11 Notice: Undefined variable: data in /in/BiUFG on line 11 Notice: Undefined variable: type in /in/BiUFG on line 11
Output for 5.2.3 - 5.6.28
Notice: Undefined variable: id in /in/BiUFG on line 4 Notice: Undefined variable: type in /in/BiUFG on line 4 Notice: Undefined variable: data in /in/BiUFG on line 8 Notice: Undefined variable: type in /in/BiUFG on line 11
Output for 5.0.4 - 5.2.2
Notice: Undefined variable: id in /in/BiUFG on line 4 Notice: Undefined variable: type in /in/BiUFG on line 4 Notice: Undefined variable: data in /in/BiUFG on line 6 Notice: Undefined variable: type in /in/BiUFG on line 9
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: id in /in/BiUFG on line 4 Notice: Undefined variable: type in /in/BiUFG on line 4 Notice: Undefined variable: data in /in/BiUFG on line 6 Notice: Undefined variable: type in /in/BiUFG on line 9
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: id in /in/BiUFG on line 4 Notice: Undefined variable: type in /in/BiUFG on line 4 Notice: Undefined variable: data in /in/BiUFG on line 7 Notice: Undefined variable: type in /in/BiUFG on line 11