3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MeuTeste{ public function __construct(){ echo 'começou'; } public function receber(string $nome):string{ return 123; } } $teste = new MeuTeste(); $teste->receber('Tom');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v6g2D
function name:  (null)
number of ops:  7
compiled vars:  !0 = $teste
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'MeuTeste'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'receber'
          4        SEND_VAL_EX                                              'Tom'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class MeuTeste:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v6g2D
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'come%C3%A7ou'
    6     1      > RETURN                                                   null

End of function __construct

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

End of function receber

End of class MeuTeste.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.38 ms | 1393 KiB | 13 Q