3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( (new A)->x ); if (empty($_SERVER['argv'][1])) { class A { public $x = 1; } } else { class A { public $x = 2; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GDp3K
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'A'
          2        DO_FCALL                                      0          
          3        FETCH_OBJ_R                                      ~2      $0, 'x'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    3     6        FETCH_IS                                         ~4      '_SERVER'
          7        FETCH_DIM_IS                                     ~5      ~4, 'argv'
          8        ISSET_ISEMPTY_DIM_OBJ                         1          ~5, 1
          9      > JMPZ                                                     ~6, ->12
    4    10    >   DECLARE_CLASS                                            'a'
         11      > JMP                                                      ->13
    8    12    >   DECLARE_CLASS                                            'a'
   11    13    > > RETURN                                                   1

Class A: [no user functions]
Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.39 ms | 1399 KiB | 15 Q