3v4l.org

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

Class Example:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HsDin
function name:  foo
number of ops:  3
compiled vars:  !0 = $f, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_INIT                                        !0      null
          1        RECV                                             !1      
    7     2      > RETURN                                                   null

End of function foo

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.1 ms | 1393 KiB | 13 Q