3v4l.org

run code in 300+ PHP versions simultaneously
<script> function percentShow(a,b) { if(b==5){ alert(b); alert(document.getElementById('mydiv1')); document.getElementById('mydiv1').style.backgroundColor = 'blue'; document.getElementById('mydiv1').style.width = '50%'; } } </script> <?php echo '<script>window.onload=percentShow('."'".$this->commonmodel->percentCount(5)."'".',5);</script>';?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/liTJj
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cscript%3E%0A++++++++++++function+percentShow%28a%2Cb%29+%7B%0A%0A++++++++++++if%28b%3D%3D5%29%7B%0A++++++++++++++++alert%28b%29%3B+%0A++++++++++++++++alert%28document.getElementById%28%27mydiv1%27%29%29%3B%0A++++++++++++++++document.getElementById%28%27mydiv1%27%29.style.backgroundColor+%3D+%27blue%27%3B%0A%0A++++++++++++++document.getElementById%28%27mydiv1%27%29.style.width+%3D+%2750%25%27%3B%0A%0A++++++++++++%7D%0A%0A%0A++++++++%7D%0A++++++++%3C%2Fscript%3E%0A'
   17     1        FETCH_THIS                                       $0      
          2        FETCH_OBJ_R                                      ~1      $0, 'commonmodel'
          3        INIT_METHOD_CALL                                         ~1, 'percentCount'
          4        SEND_VAL_EX                                              5
          5        DO_FCALL                                      0  $2      
          6        CONCAT                                           ~3      '%3Cscript%3Ewindow.onload%3DpercentShow%28%27', $2
          7        CONCAT                                           ~4      ~3, '%27'
          8        CONCAT                                           ~5      ~4, '%2C5%29%3B%3C%2Fscript%3E'
          9        ECHO                                                     ~5
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.48 ms | 1384 KiB | 13 Q