3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump([] ** []); var_dump([] ** (new ArrayObject())); var_dump((new ArrayObject()) ** []); var_dump([] ** (new stdClass())); var_dump((new stdClass()) ** []); class Foo {}; var_dump([] ** (new Foo())); var_dump((new Foo()) ** []);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lJKUn
function name:  (null)
number of ops:  41
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        POW                                              ~0      <array>, <array>
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        NEW                                              $2      'ArrayObject'
          6        DO_FCALL                                      0          
          7        POW                                              ~4      <array>, $2
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        NEW                                              $6      'ArrayObject'
         12        DO_FCALL                                      0          
         13        POW                                              ~8      $6, <array>
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        NEW                                              $10     'stdClass'
         18        DO_FCALL                                      0          
         19        POW                                              ~12     <array>, $10
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'var_dump'
         23        NEW                                              $14     'stdClass'
         24        DO_FCALL                                      0          
         25        POW                                              ~16     $14, <array>
         26        SEND_VAL                                                 ~16
         27        DO_ICALL                                                 
   11    28        INIT_FCALL                                               'var_dump'
         29        NEW                                              $18     'Foo'
         30        DO_FCALL                                      0          
         31        POW                                              ~20     <array>, $18
         32        SEND_VAL                                                 ~20
         33        DO_ICALL                                                 
   12    34        INIT_FCALL                                               'var_dump'
         35        NEW                                              $22     'Foo'
         36        DO_FCALL                                      0          
         37        POW                                              ~24     $22, <array>
         38        SEND_VAL                                                 ~24
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.2 ms | 1396 KiB | 15 Q