3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar($arg1, $arg2) { echo $arg1 . '-' . $arg2; } } $a = [new foo, 'bar'](...['foo', 'bar']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nimtV
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1
          3        ADD_ARRAY_ELEMENT                                ~3      'bar'
          4        INIT_DYNAMIC_CALL                                        ~3
          5        SEND_UNPACK                                              <array>
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      1  $4      
          8        ASSIGN                                                   !0, $4
          9      > RETURN                                                   1

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nimtV
function name:  bar
number of ops:  6
compiled vars:  !0 = $arg1, !1 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        CONCAT                                           ~2      !0, '-'
          3        CONCAT                                           ~3      ~2, !1
          4        ECHO                                                     ~3
    9     5      > RETURN                                                   null

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1393 KiB | 13 Q