3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sql = "select #, count(*) from rateexport where rateexport.`block # rate` > 0;" . PHP_EOL; for ($x = 0; $x < 31; $x++) { echo str_replace("#", $x, $sql); }
based on k6om2
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
select 0, count(*) from rateexport where rateexport.`block 0 rate` > 0; select 1, count(*) from rateexport where rateexport.`block 1 rate` > 0; select 2, count(*) from rateexport where rateexport.`block 2 rate` > 0; select 3, count(*) from rateexport where rateexport.`block 3 rate` > 0; select 4, count(*) from rateexport where rateexport.`block 4 rate` > 0; select 5, count(*) from rateexport where rateexport.`block 5 rate` > 0; select 6, count(*) from rateexport where rateexport.`block 6 rate` > 0; select 7, count(*) from rateexport where rateexport.`block 7 rate` > 0; select 8, count(*) from rateexport where rateexport.`block 8 rate` > 0; select 9, count(*) from rateexport where rateexport.`block 9 rate` > 0; select 10, count(*) from rateexport where rateexport.`block 10 rate` > 0; select 11, count(*) from rateexport where rateexport.`block 11 rate` > 0; select 12, count(*) from rateexport where rateexport.`block 12 rate` > 0; select 13, count(*) from rateexport where rateexport.`block 13 rate` > 0; select 14, count(*) from rateexport where rateexport.`block 14 rate` > 0; select 15, count(*) from rateexport where rateexport.`block 15 rate` > 0; select 16, count(*) from rateexport where rateexport.`block 16 rate` > 0; select 17, count(*) from rateexport where rateexport.`block 17 rate` > 0; select 18, count(*) from rateexport where rateexport.`block 18 rate` > 0; select 19, count(*) from rateexport where rateexport.`block 19 rate` > 0; select 20, count(*) from rateexport where rateexport.`block 20 rate` > 0; select 21, count(*) from rateexport where rateexport.`block 21 rate` > 0; select 22, count(*) from rateexport where rateexport.`block 22 rate` > 0; select 23, count(*) from rateexport where rateexport.`block 23 rate` > 0; select 24, count(*) from rateexport where rateexport.`block 24 rate` > 0; select 25, count(*) from rateexport where rateexport.`block 25 rate` > 0; select 26, count(*) from rateexport where rateexport.`block 26 rate` > 0; select 27, count(*) from rateexport where rateexport.`block 27 rate` > 0; select 28, count(*) from rateexport where rateexport.`block 28 rate` > 0; select 29, count(*) from rateexport where rateexport.`block 29 rate` > 0; select 30, count(*) from rateexport where rateexport.`block 30 rate` > 0;
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/Nt1cR on line 2 select 0, count(*) from rateexport where rateexport.`block 0 rate` > 0;PHP_EOLselect 1, count(*) from rateexport where rateexport.`block 1 rate` > 0;PHP_EOLselect 2, count(*) from rateexport where rateexport.`block 2 rate` > 0;PHP_EOLselect 3, count(*) from rateexport where rateexport.`block 3 rate` > 0;PHP_EOLselect 4, count(*) from rateexport where rateexport.`block 4 rate` > 0;PHP_EOLselect 5, count(*) from rateexport where rateexport.`block 5 rate` > 0;PHP_EOLselect 6, count(*) from rateexport where rateexport.`block 6 rate` > 0;PHP_EOLselect 7, count(*) from rateexport where rateexport.`block 7 rate` > 0;PHP_EOLselect 8, count(*) from rateexport where rateexport.`block 8 rate` > 0;PHP_EOLselect 9, count(*) from rateexport where rateexport.`block 9 rate` > 0;PHP_EOLselect 10, count(*) from rateexport where rateexport.`block 10 rate` > 0;PHP_EOLselect 11, count(*) from rateexport where rateexport.`block 11 rate` > 0;PHP_EOLselect 12, count(*) from rateexport where rateexport.`block 12 rate` > 0;PHP_EOLselect 13, count(*) from rateexport where rateexport.`block 13 rate` > 0;PHP_EOLselect 14, count(*) from rateexport where rateexport.`block 14 rate` > 0;PHP_EOLselect 15, count(*) from rateexport where rateexport.`block 15 rate` > 0;PHP_EOLselect 16, count(*) from rateexport where rateexport.`block 16 rate` > 0;PHP_EOLselect 17, count(*) from rateexport where rateexport.`block 17 rate` > 0;PHP_EOLselect 18, count(*) from rateexport where rateexport.`block 18 rate` > 0;PHP_EOLselect 19, count(*) from rateexport where rateexport.`block 19 rate` > 0;PHP_EOLselect 20, count(*) from rateexport where rateexport.`block 20 rate` > 0;PHP_EOLselect 21, count(*) from rateexport where rateexport.`block 21 rate` > 0;PHP_EOLselect 22, count(*) from rateexport where rateexport.`block 22 rate` > 0;PHP_EOLselect 23, count(*) from rateexport where rateexport.`block 23 rate` > 0;PHP_EOLselect 24, count(*) from rateexport where rateexport.`block 24 rate` > 0;PHP_EOLselect 25, count(*) from rateexport where rateexport.`block 25 rate` > 0;PHP_EOLselect 26, count(*) from rateexport where rateexport.`block 26 rate` > 0;PHP_EOLselect 27, count(*) from rateexport where rateexport.`block 27 rate` > 0;PHP_EOLselect 28, count(*) from rateexport where rateexport.`block 28 rate` > 0;PHP_EOLselect 29, count(*) from rateexport where rateexport.`block 29 rate` > 0;PHP_EOLselect 30, count(*) from rateexport where rateexport.`block 30 rate` > 0;PHP_EOL