3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); function callbackFunction() {} class Foo { public function applyA(callable $errorCallback = null, bool $showProgress) {} public function applyB(stdClass $object = null, bool $showProgress) {} public function applyC($withoutTypeDeclaration = null, bool $showProgress) {} } $foo = new Foo; $foo->applyA('callbackFunction', true); $foo->applyB(new stdClass, true); $foo->applyC(new stdClass, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cQjUj
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
   12     3        NEW                                              $2      'Foo'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   13     6        INIT_METHOD_CALL                                         !0, 'applyA'
          7        SEND_VAL_EX                                              'callbackFunction'
          8        SEND_VAL_EX                                              <true>
          9        DO_FCALL                                      0          
   14    10        INIT_METHOD_CALL                                         !0, 'applyB'
         11        NEW                                              $6      'stdClass'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $6
         14        SEND_VAL_EX                                              <true>
         15        DO_FCALL                                      0          
   15    16        INIT_METHOD_CALL                                         !0, 'applyC'
         17        NEW                                              $9      'stdClass'
         18        DO_FCALL                                      0          
         19        SEND_VAR_NO_REF_EX                                       $9
         20        SEND_VAL_EX                                              <true>
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

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

End of function callbackfunction

Class Foo:
Function applya:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cQjUj
function name:  applyA
number of ops:  3
compiled vars:  !0 = $errorCallback, !1 = $showProgress
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function applya

Function applyb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cQjUj
function name:  applyB
number of ops:  3
compiled vars:  !0 = $object, !1 = $showProgress
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function applyb

Function applyc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cQjUj
function name:  applyC
number of ops:  3
compiled vars:  !0 = $withoutTypeDeclaration, !1 = $showProgress
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function applyc

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.87 ms | 1431 KiB | 14 Q