3v4l.org

run code in 300+ PHP versions simultaneously
$like_post_num = 13; $hate_post_num = 10; $total = $like_post_num + $hate_post_num; $like_post_percent = round($like_post_num / $total * 100); $hate_post_percent = round($hate_post_num / $total * 100); <div class="dislike_base"> <div class="like" style="width: <?php echo $like_post_percent ?>%"></div> <div class="like" style="width: <?php echo $hate_post_percent ?>%"></div> </div>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IIX6W
function name:  (null)
number of ops:  6
compiled vars:  !0 = $like_post_percent, !1 = $hate_post_percent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%24like_post_num+%3D+13%3B%0A%24hate_post_num+%3D+10%3B%0A%24total+%3D+%24like_post_num+%2B+%24hate_post_num%3B%0A%0A%24like_post_percent+%3D+round%28%24like_post_num+%2F+%24total+%2A+100%29%3B%0A%24hate_post_percent+%3D+round%28%24hate_post_num+%2F+%24total+%2A+100%29%3B%0A%0A%3Cdiv+class%3D%22dislike_base%22%3E%0A++++%3Cdiv+class%3D%22like%22+style%3D%22width%3A+'
    9     1        ECHO                                                     !0
          2        ECHO                                                     '%25%22%3E%3C%2Fdiv%3E%0A++++%3Cdiv+class%3D%22like%22+style%3D%22width%3A+'
   10     3        ECHO                                                     !1
          4        ECHO                                                     '%25%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E'
   11     5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.94 ms | 1393 KiB | 13 Q