define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
<?php
$number_class = "";
$number = get_field('number');
if($number < 34){
$number_class = "class-0-33";
}
elseif($number >= 34 && $number < 67){
$number_class = "class-34-66";
}
else {
$number_class = "class-67-100";
}
?>
<div id="parent" class="<?php echo $number_class; ?>">
<span style="width:<?php the_field('number'); ?>%;">
<span class="childclass"><?php the_field('number'); ?>
</span>
</span>
</div>