3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = new stdClass; $obj1->Sort = 1; $obj1Customised = new stdClass; $obj1->Customised = $obj1Customised; $obj1Customised->Original = $obj1; $obj2 = new stdClass; $obj2->Sort = 1; $obj2Customised = new stdClass; $obj2->Customised = $obj2Customised; $obj2Customised->Original = $obj2; $items = array($obj1, $obj2); $sortOrders = array($obj1->Sort, $obj2->Sort); array_multisort($sortOrders, $items);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s9UZM
function name:  (null)
number of ops:  37
compiled vars:  !0 = $obj1, !1 = $obj1Customised, !2 = $obj2, !3 = $obj2Customised, !4 = $items, !5 = $sortOrders
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $6      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
    4     3        ASSIGN_OBJ                                               !0, 'Sort'
          4        OP_DATA                                                  1
    5     5        NEW                                              $10     'stdClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $10
    6     8        ASSIGN_OBJ                                               !0, 'Customised'
          9        OP_DATA                                                  !1
    7    10        ASSIGN_OBJ                                               !1, 'Original'
         11        OP_DATA                                                  !0
    9    12        NEW                                              $15     'stdClass'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $15
   10    15        ASSIGN_OBJ                                               !2, 'Sort'
         16        OP_DATA                                                  1
   11    17        NEW                                              $19     'stdClass'
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !3, $19
   12    20        ASSIGN_OBJ                                               !2, 'Customised'
         21        OP_DATA                                                  !3
   13    22        ASSIGN_OBJ                                               !3, 'Original'
         23        OP_DATA                                                  !2
   15    24        INIT_ARRAY                                       ~24     !0
         25        ADD_ARRAY_ELEMENT                                ~24     !2
         26        ASSIGN                                                   !4, ~24
   16    27        FETCH_OBJ_R                                      ~26     !0, 'Sort'
         28        INIT_ARRAY                                       ~27     ~26
         29        FETCH_OBJ_R                                      ~28     !2, 'Sort'
         30        ADD_ARRAY_ELEMENT                                ~27     ~28
         31        ASSIGN                                                   !5, ~27
   18    32        INIT_FCALL                                               'array_multisort'
         33        SEND_REF                                                 !5
         34        SEND_REF                                                 !4
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.62 ms | 1396 KiB | 15 Q