3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = new stdClass; $obj1->Sort = 1; $obj2 = new stdClass; $obj2->Sort = 1; $items = array($obj1, $obj2); asort( $items); var_dump($items);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r0cqU
function name:  (null)
number of ops:  20
compiled vars:  !0 = $obj1, !1 = $obj2, !2 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, 'Sort'
          4        OP_DATA                                                  1
    6     5        NEW                                              $7      'stdClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $7
    7     8        ASSIGN_OBJ                                               !1, 'Sort'
          9        OP_DATA                                                  1
   10    10        INIT_ARRAY                                       ~11     !0
         11        ADD_ARRAY_ELEMENT                                ~11     !1
         12        ASSIGN                                                   !2, ~11
   13    13        INIT_FCALL                                               'asort'
         14        SEND_REF                                                 !2
         15        DO_ICALL                                                 
   14    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.34 ms | 1386 KiB | 17 Q