3v4l.org

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

Class TypeHinter:
Function givemeanint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6LmRo
function name:  giveMeAnInt
number of ops:  5
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of function givemeanint

End of class TypeHinter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.17 ms | 1394 KiB | 15 Q