3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { const TOTO = 'TEST'; } class b { public $b = []; public function __construct() { $a = A::TOTO; $this->b['rrr'] = 'myTest'; } } $t = new b();
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/m11LD
function name:  (null)
number of ops:  6
compiled vars:  !0 = $t
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   8     1        NOP                                                      
  20     2        NEW                                              $3      :-5
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !0, $3
         5      > RETURN                                                   1

Class A: [no user functions]
Class b:
Function __construct:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/m11LD
function name:  __construct
number of ops:  5
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  14     0  E >   ASSIGN                                                   !0, 'TEST'
  15     1        FETCH_OBJ_W                                      $2      'b'
         2        ASSIGN_DIM                                               $2, 'rrr'
         3        OP_DATA                                                  'myTest'
  16     4      > RETURN                                                   null

End of function __construct

End of class b.

Generated using Vulcan Logic Dumper, using php 7.3.0