3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraylist = array("/abc/"=>"myfunction"); function myfunction(){ echo "Whatnow"; } foreach($arraylist as $key=>$value){ if(preg_match($key, "abc")){ $func = $value; $func(); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/58tFO
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arraylist, !1 = $value, !2 = $key, !3 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1      > FE_RESET_R                                       $5      !0, ->13
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->13
          3    >   ASSIGN                                                   !2, ~6
    7     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAR                                                 !2
          6        SEND_VAL                                                 'abc'
          7        DO_ICALL                                         $8      
          8      > JMPZ                                                     $8, ->12
    8     9    >   ASSIGN                                                   !3, !1
    9    10        INIT_DYNAMIC_CALL                                        !3
         11        DO_FCALL                                      0          
    6    12    > > JMP                                                      ->2
         13    >   FE_FREE                                                  $5
   11    14      > RETURN                                                   1

Function myfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/58tFO
function name:  myfunction
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'Whatnow'
    5     1      > RETURN                                                   null

End of function myfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.13 ms | 1395 KiB | 15 Q