3v4l.org

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

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

End of function __construct

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.38 ms | 1395 KiB | 15 Q