3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Request { private $data = []; function data() { return $this->data; } } $request = new Request(); $request->data()["foo"] = "bar"; var_dump($request->data());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kshHr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Request'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'data'
          4        DO_FCALL                                      0  $4      
          5        SEPARATE                                         $4      $4
          6        ASSIGN_DIM                                               $4, 'foo'
          7        OP_DATA                                                  'bar'
   11     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !0, 'data'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Request:
Function data:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kshHr
function name:  data
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                      ~0      'data'
          1      > RETURN                                                   ~0
          2*     > RETURN                                                   null

End of function data

End of class Request.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.3 ms | 1399 KiB | 15 Q