3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/eTW2P
function name:  (null)
number of ops:  22
compiled vars:  !0 = $like_post_num, !1 = $hate_post_num, !2 = $total, !3 = $like_post_percent, !4 = $hate_post_percent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 13
    3     1        ASSIGN                                                   !1, 10
    4     2        ADD                                              ~7      !0, !1
          3        ASSIGN                                                   !2, ~7
    6     4        INIT_FCALL                                               'round'
          5        DIV                                              ~9      !0, !2
          6        MUL                                              ~10     ~9, 100
          7        SEND_VAL                                                 ~10
          8        DO_ICALL                                         $11     
          9        ASSIGN                                                   !3, $11
    7    10        INIT_FCALL                                               'round'
         11        DIV                                              ~13     !1, !2
         12        MUL                                              ~14     ~13, 100
         13        SEND_VAL                                                 ~14
         14        DO_ICALL                                         $15     
         15        ASSIGN                                                   !4, $15
    9    16        ECHO                                                     '%0A%3Cdiv+class%3D%22dislike_base%22%3E%0A++++%3Cdiv+class%3D%22like%22+style%3D%22width%3A+'
   11    17        ECHO                                                     !3
         18        ECHO                                                     '%25%22%3E%3C%2Fdiv%3E%0A++++%3Cdiv+class%3D%22like%22+style%3D%22width%3A+'
   12    19        ECHO                                                     !4
         20        ECHO                                                     '%25%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E'
   13    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.17 ms | 1395 KiB | 15 Q