3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "my_func" => function($param = "no parameter"){ echo "In my function. Parameter: ".$param; } ); //check if there is some function or method if( is_callable( $a["my_func"] ) ) $a["my_func"]();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/GtkDP
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FGtkDP%3A2%240'
    4     1        INIT_ARRAY                                       ~2      ~1, 'my_func'
    1     2        ASSIGN                                                   !0, ~2
    8     3        INIT_FCALL                                               'is_callable'
          4        FETCH_DIM_R                                      ~4      !0, 'my_func'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7      > JMPZ                                                     $5, ->11
          8    >   FETCH_DIM_R                                      ~6      !0, 'my_func'
          9        INIT_DYNAMIC_CALL                                        ~6
         10        DO_FCALL                                      0          
         11    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FGtkDP%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GtkDP
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      'no+parameter'
    3     1        CONCAT                                           ~1      'In+my+function.+Parameter%3A+', !0
          2        ECHO                                                     ~1
    4     3      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FGtkDP%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.53 ms | 1395 KiB | 15 Q