3v4l.org

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

Function callbackfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dLoTl
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/dLoTl
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

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.31 ms | 1425 KiB | 14 Q