3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php phpversion() >= "7.0.0" or die(); class FooBar { public function __construct() { $this->x = 2; var_dump($this); } } $foobar = new Foobar;
based on hfUIS
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = -2
filename:       /in/BUfB7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $foobar
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'phpversion'
         1        DO_ICALL                                         $1      
         2        IS_SMALLER_OR_EQUAL                              ~2      '7.0.0', $1
         3      > JMPNZ_EX                                         ~2      ~2, ->6
         4    > > EXIT                                                     
         5*       BOOL                                             ~2      <true>
         6    >   FREE                                                     ~2
   5     7        NOP                                                      
  15     8        NEW                                              $4      :-3
         9        DO_FCALL                                      0          
        10        ASSIGN                                                   !0, $4
        11      > RETURN                                                   1

Class FooBar:
Function __construct:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/BUfB7
function name:  __construct
number of ops:  6
compiled vars:  !0 = $this
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E >   ASSIGN_OBJ                                               'x'
         1        OP_DATA                                                  2
  10     2        INIT_FCALL                                               'var_dump'
         3        SEND_VAR                                                 !0
         4        DO_ICALL                                                 
  12     5      > RETURN                                                   null

End of function __construct

End of class FooBar.

Generated using Vulcan Logic Dumper, using php 7.3.0