3v4l.org

run code in 300+ PHP versions simultaneously
<?php $titlex = 'string \' string'; $desc = $descx = $titlez = $titlex; $do_file = null; $r = htmlentities('updatepopup('.json_encode($titlex).', ' .json_encode($desc) .');', ENT_QUOTES); $r2 = htmlentities('updatepopup('.json_encode($titlex).', ' .json_encode($descx) .');', ENT_QUOTES); if ($do_file == "0") { echo "<tr title='".$titlez."' class='header' onClick='".$r."'>"; } else { echo "<tr title='".$titlez."' class='header' onClick='".$r2."'>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 43
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cSjUM
function name:  (null)
number of ops:  49
compiled vars:  !0 = $titlex, !1 = $desc, !2 = $descx, !3 = $titlez, !4 = $do_file, !5 = $r, !6 = $r2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'string+%27+string'
    3     1        ASSIGN                                           ~8      !3, !0
          2        ASSIGN                                           ~9      !2, ~8
          3        ASSIGN                                                   !1, ~9
    4     4        ASSIGN                                                   !4, null
    6     5        INIT_FCALL                                               'htmlentities'
          6        INIT_FCALL                                               'json_encode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $12     
          9        CONCAT                                           ~13     'updatepopup%28', $12
         10        CONCAT                                           ~14     ~13, '%2C+'
         11        INIT_FCALL                                               'json_encode'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $15     
         14        CONCAT                                           ~16     ~14, $15
         15        CONCAT                                           ~17     ~16, '%29%3B'
         16        SEND_VAL                                                 ~17
         17        SEND_VAL                                                 3
         18        DO_ICALL                                         $18     
         19        ASSIGN                                                   !5, $18
    7    20        INIT_FCALL                                               'htmlentities'
         21        INIT_FCALL                                               'json_encode'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $20     
         24        CONCAT                                           ~21     'updatepopup%28', $20
         25        CONCAT                                           ~22     ~21, '%2C+'
         26        INIT_FCALL                                               'json_encode'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                         $23     
         29        CONCAT                                           ~24     ~22, $23
         30        CONCAT                                           ~25     ~24, '%29%3B'
         31        SEND_VAL                                                 ~25
         32        SEND_VAL                                                 3
         33        DO_ICALL                                         $26     
         34        ASSIGN                                                   !6, $26
   10    35        IS_EQUAL                                                 !4, '0'
         36      > JMPZ                                                     ~28, ->43
         37    >   CONCAT                                           ~29     '%3Ctr+title%3D%27', !3
         38        CONCAT                                           ~30     ~29, '%27+class%3D%27header%27+onClick%3D%27'
         39        CONCAT                                           ~31     ~30, !5
         40        CONCAT                                           ~32     ~31, '%27%3E'
         41        ECHO                                                     ~32
         42      > JMP                                                      ->48
   12    43    >   CONCAT                                           ~33     '%3Ctr+title%3D%27', !3
         44        CONCAT                                           ~34     ~33, '%27+class%3D%27header%27+onClick%3D%27'
         45        CONCAT                                           ~35     ~34, !6
         46        CONCAT                                           ~36     ~35, '%27%3E'
         47        ECHO                                                     ~36
         48    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.66 ms | 1400 KiB | 17 Q