3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public const CATEGORY_ROOM = 11; public function setTyCategoryId(string $tyCategoryId): self { return $this; } } $test = new Test; $test->setTyCategoryId(Test::CATEGORY_ROOM);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/brdlq
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'setTyCategoryId'
          4        SEND_VAL_EX                                              11
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Test:
Function settycategoryid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/brdlq
function name:  setTyCategoryId
number of ops:  6
compiled vars:  !0 = $tyCategoryId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        FETCH_THIS                                       ~1      
          2        VERIFY_RETURN_TYPE                                       ~1
          3      > RETURN                                                   ~1
    9     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function settycategoryid

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.95 ms | 1384 KiB | 13 Q