3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Client { public function __construct() { } public function getName() { return 'x'; } } print (new $Client())->getName();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1JTHO
function name:  (null)
number of ops:  7
compiled vars:  !0 = $Client
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_CLASS                                   0  $1      !0
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $2, 'getName'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

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

End of function __construct

Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1JTHO
function name:  getName
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   'x'
   10     1*     > RETURN                                                   null

End of function getname

End of class Client.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.63 ms | 1393 KiB | 13 Q