3v4l.org

run code in 500+ PHP versions simultaneously
<?php set_error_handler(function() { return true; }); // Insert evil laugh. Please? With a cherry on top? function foo(array $foo) { var_dump('foo'); } foo(1); function bar($bar) { foreach ($bar as $kruk) { echo $kruk; } var_dump('bar'); } bar(1); function meow(Exception $meow) { var_dump('meow'); } meow(new StdClass()); function baz($baz) { if ( ! is_array($baz)) { throw new InvalidArgumentException('$baz is not an array.'); } var_dump('baz'); } baz(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oObfK
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    5     2        SEND_VAL                                                     ~0
    3     3        DO_ICALL                                                     
   11     4        INIT_FCALL                                                   'foo'
          5        SEND_VAL                                                     1
          6        DO_FCALL                                          0          
   21     7        INIT_FCALL                                                   'bar'
          8        SEND_VAL                                                     1
          9        DO_FCALL                                          0          
   27    10        INIT_FCALL                                                   'meow'
         11        NEW                                                  $4      'StdClass'
         12        DO_FCALL                                          0          
         13        SEND_VAR                                                     $4
         14        DO_FCALL                                          0          
   38    15        INIT_FCALL                                                   'baz'
         16        SEND_VAL                                                     1
         17        DO_FCALL                                          0          
         18      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oObfK
function name:  {closure:/in/oObfK:3}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                       <true>
    5     1*     > RETURN                                                       null

End of Dynamic Function 0

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oObfK
function name:  foo
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
    8     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAL                                                     'foo'
          3        DO_ICALL                                                     
    9     4      > RETURN                                                       null

End of function foo

Function bar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/oObfK
function name:  bar
number of ops:  10
compiled vars:  !0 = $bar, !1 = $kruk
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
   14     1      > FE_RESET_R                                           $2      !0, ->5
          2    > > FE_FETCH_R                                                   $2, !1, ->5
   15     3    >   ECHO                                                         !1
   14     4      > JMP                                                          ->2
          5    >   FE_FREE                                                      $2
   18     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAL                                                     'bar'
          8        DO_ICALL                                                     
   19     9      > RETURN                                                       null

End of function bar

Function meow:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oObfK
function name:  meow
number of ops:  5
compiled vars:  !0 = $meow
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   23     0  E >   RECV                                                 !0      
   24     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAL                                                     'meow'
          3        DO_ICALL                                                     
   25     4      > RETURN                                                       null

End of function meow

Function baz:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oObfK
function name:  baz
number of ops:  12
compiled vars:  !0 = $baz
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   29     0  E >   RECV                                                 !0      
   30     1        TYPE_CHECK                                      128  ~1      !0
          2        BOOL_NOT                                             ~2      ~1
          3      > JMPZ                                                         ~2, ->8
   32     4    >   NEW                                                  $3      'InvalidArgumentException'
          5        SEND_VAL_EX                                                  '%24baz+is+not+an+array.'
          6        DO_FCALL                                          0          
          7      > THROW                                             0          $3
   35     8    >   INIT_FCALL                                                   'var_dump'
          9        SEND_VAL                                                     'baz'
         10        DO_ICALL                                                     
   36    11      > RETURN                                                       null

End of function baz

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.62 ms | 3024 KiB | 19 Q