3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class a { function b($var) { return $var . 'x'; } } $teste = new a(); echo $this->b('oi');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fS0pZ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $teste
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
   11     3        NEW                                              $2      'a'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   12     6        FETCH_THIS                                       $5      
          7        INIT_METHOD_CALL                                         $5, 'b'
          8        SEND_VAL_EX                                              'oi'
          9        DO_FCALL                                      0  $6      
         10        ECHO                                                     $6
         11      > RETURN                                                   1

Class a:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fS0pZ
function name:  b
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        CONCAT                                           ~1      !0, 'x'
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function b

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.83 ms | 1399 KiB | 15 Q