3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function bar(int $a): void; } class Baz implements Foo { public function bar(int $a, int $b=2): void { echo "$a: $b"; } } (new Baz)->bar(1,3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/judRV
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'baz'
   16     1        NEW                                              $0      'Baz'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'bar'
          4        SEND_VAL_EX                                              1
          5        SEND_VAL_EX                                              3
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/judRV
function name:  bar
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function bar

End of class Foo.

Class Baz:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/judRV
function name:  bar
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      2
   12     2        ROPE_INIT                                     3  ~3      !0
          3        ROPE_ADD                                      1  ~3      ~3, '%3A+'
          4        ROPE_END                                      2  ~2      ~3, !1
          5        ECHO                                                     ~2
   13     6      > RETURN                                                   null

End of function bar

End of class Baz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.76 ms | 997 KiB | 13 Q