3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Greeter { function greet(...$args) { var_dump($args); } } $g = new Greeter; $g->greet("foo", "bar");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CbmeF
function name:  (null)
number of ops:  8
compiled vars:  !0 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Greeter'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'greet'
          4        SEND_VAL_EX                                              'foo'
          5        SEND_VAL_EX                                              'bar'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Greeter:
Function greet:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CbmeF
function name:  greet
number of ops:  5
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_VARIADIC                                    !0      
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4      > RETURN                                                   null

End of function greet

End of class Greeter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.17 ms | 1394 KiB | 15 Q