3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { print_r(func_get_args()); } } new A(1, 2, 34, 'ciao'); new A(); new A('x', 'y', 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EsJBG
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $0      'A'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              2
          3        SEND_VAL_EX                                              34
          4        SEND_VAL_EX                                              'ciao'
          5        DO_FCALL                                      0          
          6        FREE                                                     $0
   12     7        NEW                                              $2      'A'
          8        DO_FCALL                                      0          
          9        FREE                                                     $2
   13    10        NEW                                              $4      'A'
         11        SEND_VAL_EX                                              'x'
         12        SEND_VAL_EX                                              'y'
         13        SEND_VAL_EX                                              0
         14        DO_FCALL                                      0          
         15        FREE                                                     $4
         16      > RETURN                                                   1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EsJBG
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'print_r'
          1        FUNC_GET_ARGS                                    ~0      
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    7     4      > RETURN                                                   null

End of function __construct

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.81 ms | 1400 KiB | 15 Q