3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('1' => '1', '2' => '2', '3' => '3'); $b = array('2' => '2', '1' => '1', '3' => '3'); var_dump(sort($a)==sort($b)); var_dump(soart($a)===sort($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AoK1J
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'sort'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $4      
          6        INIT_FCALL                                               'sort'
          7        SEND_REF                                                 !1
          8        DO_ICALL                                         $5      
          9        IS_EQUAL                                         ~6      $4, $5
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL_BY_NAME                                       'soart'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $8      
         16        INIT_FCALL                                               'sort'
         17        SEND_REF                                                 !1
         18        DO_ICALL                                         $9      
         19        IS_IDENTICAL                                     ~10     $8, $9
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.55 ms | 1399 KiB | 17 Q