3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Qwe { #public ${''} = 20; public function __construct(){ echo $this->{''}.PHP_EOL; } } ${''}=10; echo ${''}.PHP_EOL; // 10 echo ${null}.PHP_EOL; // 10 $b = new Qwe;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lSRbM
function name:  (null)
number of ops:  10
compiled vars:  !0 = $, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 10
   14     1        CONCAT                                           ~3      !0, '%0A'
          2        ECHO                                                     ~3
   15     3        FETCH_R                      local               ~4      ''
          4        CONCAT                                           ~5      ~4, '%0A'
          5        ECHO                                                     ~5
   17     6        NEW                                              $6      'Qwe'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
          9      > RETURN                                                   1

Class Qwe:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lSRbM
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                      ~0      ''
          1        CONCAT                                           ~1      ~0, '%0A'
          2        ECHO                                                     ~1
    9     3      > RETURN                                                   null

End of function __construct

End of class Qwe.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.44 ms | 1393 KiB | 13 Q