3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __set($name, $value) { var_dump($name); var_dump($value); } } $test = new test(); $test->a['hello'] = 12345;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XGUT1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        FETCH_OBJ_W                                      $4      !0, 'a'
          4        ASSIGN_DIM                                               $4, 'hello'
          5        OP_DATA                                                  12345
          6      > RETURN                                                   1

Class test:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XGUT1
function name:  __set
number of ops:  9
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    8     8      > RETURN                                                   null

End of function __set

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.96 ms | 1395 KiB | 15 Q