3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Klass { public $method; } $c = new Klass(); $c->not_exists = 1; $c->method = function() {}; $c->method();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RuF3r
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Klass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    7     3        ASSIGN_OBJ                                               !0, 'not_exists'
          4        OP_DATA                                                  1
    8     5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FRuF3r%3A8%240'
          6        ASSIGN_OBJ                                               !0, 'method'
          7        OP_DATA                                                  ~6
    9     8        INIT_METHOD_CALL                                         !0, 'method'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FRuF3r%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RuF3r
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FRuF3r%3A8%240

Class Klass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.06 ms | 1393 KiB | 13 Q