3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hrefVal = 'javascript:__doPostBack(&#39;ctl00$ContentPlaceHolder1$hlPendingDeletes1&#39;,&#39;&#39;)'; $hrefVal = html_entity_decode($hrefVal); $args = substr($hrefVal, strpos($hrefVal, '(') + 1, strpos($hrefVal, ')') - strpos($hrefVal, '(') - 1); list($eventTarget, $eventArguments) = explode(',', $args); echo "EVENTTARGET: $eventTarget, EVENTARGUMENTS: $eventArguments";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c95Lu
function name:  (null)
number of ops:  41
compiled vars:  !0 = $hrefVal, !1 = $args, !2 = $eventTarget, !3 = $eventArguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'javascript%3A__doPostBack%28%26%2339%3Bctl00%24ContentPlaceHolder1%24hlPendingDeletes1%26%2339%3B%2C%26%2339%3B%26%2339%3B%29'
    3     1        INIT_FCALL                                               'html_entity_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    4     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '%28'
         10        DO_ICALL                                         $7      
         11        ADD                                              ~8      $7, 1
         12        SEND_VAL                                                 ~8
         13        INIT_FCALL                                               'strpos'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 '%29'
         16        DO_ICALL                                         $9      
         17        INIT_FCALL                                               'strpos'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 '%28'
         20        DO_ICALL                                         $10     
         21        SUB                                              ~11     $9, $10
         22        SUB                                              ~12     ~11, 1
         23        SEND_VAL                                                 ~12
         24        DO_ICALL                                         $13     
         25        ASSIGN                                                   !1, $13
    6    26        INIT_FCALL                                               'explode'
         27        SEND_VAL                                                 '%2C'
         28        SEND_VAR                                                 !1
         29        DO_ICALL                                         $15     
         30        FETCH_LIST_R                                     $16     $15, 0
         31        ASSIGN                                                   !2, $16
         32        FETCH_LIST_R                                     $18     $15, 1
         33        ASSIGN                                                   !3, $18
         34        FREE                                                     $15
    7    35        ROPE_INIT                                     4  ~21     'EVENTTARGET%3A+'
         36        ROPE_ADD                                      1  ~21     ~21, !2
         37        ROPE_ADD                                      2  ~21     ~21, '%2C+EVENTARGUMENTS%3A+'
         38        ROPE_END                                      3  ~20     ~21, !3
         39        ECHO                                                     ~20
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.58 ms | 1396 KiB | 21 Q