3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'one' => 1, 'forty-two' => 42, 'zero' => 0, 'one hundred eleven' => 111, ]; $i = new \ArrayIterator($a); var_dump($i); $i->arsort(); var_dump($i);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kr0PR
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        NEW                                              $3      'ArrayIterator'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   12     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   14     8        INIT_METHOD_CALL                                         !1, 'arsort'
          9        DO_FCALL                                      0          
   16    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.88 ms | 1394 KiB | 15 Q