3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function log(string $level, string $message, array $context = array()): void { } } $f = new Foo; $f->log('test', 'message');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nvcAX
function name:  (null)
number of ops:  8
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_METHOD_CALL                                         !0, 'log'
          4        SEND_VAL_EX                                              'test'
          5        SEND_VAL_EX                                              'message'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Foo:
Function log:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nvcAX
function name:  log
number of ops:  4
compiled vars:  !0 = $level, !1 = $message, !2 = $context
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      <array>
    7     3      > RETURN                                                   null

End of function log

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.4 ms | 1393 KiB | 13 Q