3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function b() { } public static function c() { } } class B { public function __invoke() { } } function a (callable $a = null) { } a('a'); a(array('A', 'b')); a(array(new A, 'c')); a(new B); a(null); a(function(){});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ERPh
function name:  (null)
number of ops:  26
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   INIT_FCALL                                               'a'
          1        SEND_VAL                                                 'a'
          2        DO_FCALL                                      0          
   24     3        INIT_FCALL                                               'a'
          4        SEND_VAL                                                 <array>
          5        DO_FCALL                                      0          
   25     6        INIT_FCALL                                               'a'
          7        NEW                                              $2      'A'
          8        DO_FCALL                                      0          
          9        INIT_ARRAY                                       ~4      $2
         10        ADD_ARRAY_ELEMENT                                ~4      'c'
         11        SEND_VAL                                                 ~4
         12        DO_FCALL                                      0          
   26    13        INIT_FCALL                                               'a'
         14        NEW                                              $6      'B'
         15        DO_FCALL                                      0          
         16        SEND_VAR                                                 $6
         17        DO_FCALL                                      0          
   27    18        INIT_FCALL                                               'a'
         19        SEND_VAL                                                 null
         20        DO_FCALL                                      0          
   28    21        INIT_FCALL                                               'a'
         22        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0ERPh%3A28%240'
         23        SEND_VAL                                                 ~10
         24        DO_FCALL                                      0          
         25      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ERPh
function name:  a
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV_INIT                                        !0      null
   21     1      > RETURN                                                   null

End of function a

Function %00%7Bclosure%7D%2Fin%2F0ERPh%3A28%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ERPh
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F0ERPh%3A28%240

Class A:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ERPh
function name:  b
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function b

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

End of function c

End of class A.

Class B:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0ERPh
function name:  __invoke
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN                                                   null

End of function __invoke

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.34 ms | 1403 KiB | 19 Q