3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function breakShit() { return 'derp'; } public function bar($bar) { $bar = $this->breakShit(); var_dump(func_get_args()); } } (new Foo())->bar('herp');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8RAOS
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $0      'Foo'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'bar'
          3        SEND_VAL_EX                                              'herp'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function breakshit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8RAOS
function name:  breakShit
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   'derp'
    6     1*     > RETURN                                                   null

End of function breakshit

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

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.5 ms | 1387 KiB | 15 Q