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 = str_replace("'", '', 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/JuLMB
function name:  (null)
number of ops:  46
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                                               'str_replace'
          6        SEND_VAL                                                 '%27'
          7        SEND_VAL                                                 ''
          8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 '%28'
         13        DO_ICALL                                         $7      
         14        ADD                                              ~8      $7, 1
         15        SEND_VAL                                                 ~8
         16        INIT_FCALL                                               'strpos'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '%29'
         19        DO_ICALL                                         $9      
         20        INIT_FCALL                                               'strpos'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 '%28'
         23        DO_ICALL                                         $10     
         24        SUB                                              ~11     $9, $10
         25        SUB                                              ~12     ~11, 1
         26        SEND_VAL                                                 ~12
         27        DO_ICALL                                         $13     
         28        SEND_VAR                                                 $13
         29        DO_ICALL                                         $14     
         30        ASSIGN                                                   !1, $14
    6    31        INIT_FCALL                                               'explode'
         32        SEND_VAL                                                 '%2C'
         33        SEND_VAR                                                 !1
         34        DO_ICALL                                         $16     
         35        FETCH_LIST_R                                     $17     $16, 0
         36        ASSIGN                                                   !2, $17
         37        FETCH_LIST_R                                     $19     $16, 1
         38        ASSIGN                                                   !3, $19
         39        FREE                                                     $16
    7    40        ROPE_INIT                                     4  ~22     'EVENTTARGET%3A+'
         41        ROPE_ADD                                      1  ~22     ~22, !2
         42        ROPE_ADD                                      2  ~22     ~22, '%2C+EVENTARGUMENTS%3A+'
         43        ROPE_END                                      3  ~21     ~22, !3
         44        ECHO                                                     ~21
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179 ms | 1400 KiB | 23 Q