3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); namespace websharks; class test{ public function hello(int $string): string { return (string)$string; } } echo (new test())->hello(1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XF0dR
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'websharks%5Ctest'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'hello'
          3        SEND_VAL_EX                                              1
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
          6      > RETURN                                                   1

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

End of function hello

End of class websharks\test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.88 ms | 1393 KiB | 13 Q