3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function add($a, $b, ...$c) { var_dump($c); } } Foo::add(1,2,3,4,5,6);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SoKQl
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'Foo', 'add'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 4
          5        SEND_VAL                                                 5
          6        SEND_VAL                                                 6
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function add

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.15 ms | 1386 KiB | 15 Q