3v4l.org

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

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

End of function test

End of class school.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.75 ms | 1393 KiB | 13 Q