3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i=1;$i<20;$i++) { echo 'DROP TABLE `catalog_product_flat_' . $i . '`;' . PHP_EOL; }
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
DROP TABLE `catalog_product_flat_1`; DROP TABLE `catalog_product_flat_2`; DROP TABLE `catalog_product_flat_3`; DROP TABLE `catalog_product_flat_4`; DROP TABLE `catalog_product_flat_5`; DROP TABLE `catalog_product_flat_6`; DROP TABLE `catalog_product_flat_7`; DROP TABLE `catalog_product_flat_8`; DROP TABLE `catalog_product_flat_9`; DROP TABLE `catalog_product_flat_10`; DROP TABLE `catalog_product_flat_11`; DROP TABLE `catalog_product_flat_12`; DROP TABLE `catalog_product_flat_13`; DROP TABLE `catalog_product_flat_14`; DROP TABLE `catalog_product_flat_15`; DROP TABLE `catalog_product_flat_16`; DROP TABLE `catalog_product_flat_17`; DROP TABLE `catalog_product_flat_18`; DROP TABLE `catalog_product_flat_19`;
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_1`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_2`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_3`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_4`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_5`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_6`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_7`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_8`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_9`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_10`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_11`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_12`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_13`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_14`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_15`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_16`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_17`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_18`;PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/gkJUK on line 4 DROP TABLE `catalog_product_flat_19`;PHP_EOL