3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'bob'; ?> <button type="button" onclick="Fuction(<?php echo json_encode($name); ?>)">name</button>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DJMFA
function name:  (null)
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'bob'
    4     1        ECHO                                                     '%3Cbutton+type%3D%22button%22+onclick%3D%22Fuction%28'
          2        INIT_FCALL                                               'json_encode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
          6        ECHO                                                     '%29%22%3Ename%3C%2Fbutton%3E'
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.68 ms | 1385 KiB | 15 Q