3v4l.org

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

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

End of function c

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.93 ms | 1388 KiB | 15 Q