3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $posts_per_row = 2; //var_dump((int)$posts_per_row); if ((int)$posts_per_row == 4) { $column_size = "col-xs-6 col-sm-3, col-md-3"; } if ((int)$posts_per_row == 3) { $column_size = "col-xs-6 col-sm-4, col-md-4"; } if ((int)$posts_per_row == 2){ $column_size = "col-xs-6 col-sm-6, col-md-6"; } var_dump($column_size);
based on uvKR8
Output for 4.3.0 - 7.2.0
string(27) "col-xs-6 col-sm-6, col-md-6"