3v4l.org

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

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

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.3 ms | 1395 KiB | 13 Q