3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooBar extends ArrayObject { public function baz(){ return 'baz'; } } $fb = new Foobar; $fb[] = 'wert 1'; $fb[] = 'wert 2'; $fb['mykey'] = 'myvalue'; $fb[0] = 'ueberschreibt wert 1'; // Testausgabe: var_dump($fb); echo $fb[1] . PHP_EOL; echo $fb['mykey'] . PHP_EOL; echo $fb->baz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NudFU
function name:  (null)
number of ops:  24
compiled vars:  !0 = $fb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Foobar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  'wert+1'
   13     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  'wert+2'
   14     7        ASSIGN_DIM                                               !0, 'mykey'
          8        OP_DATA                                                  'myvalue'
   15     9        ASSIGN_DIM                                               !0, 0
         10        OP_DATA                                                  'ueberschreibt+wert+1'
   19    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   20    14        FETCH_DIM_R                                      ~9      !0, 1
         15        CONCAT                                           ~10     ~9, '%0A'
         16        ECHO                                                     ~10
   21    17        FETCH_DIM_R                                      ~11     !0, 'mykey'
         18        CONCAT                                           ~12     ~11, '%0A'
         19        ECHO                                                     ~12
   22    20        INIT_METHOD_CALL                                         !0, 'baz'
         21        DO_FCALL                                      0  $13     
         22        ECHO                                                     $13
         23      > RETURN                                                   1

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

End of function baz

End of class FooBar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.59 ms | 1403 KiB | 16 Q