3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); setlocale(LC_COLLATE, 'tr_TR.utf8'); // or any other locale I use. $aInput['values'] = array('foo',1,'bar',2,'baz',true,'quux',false,'abc',null); uasort($aInput['values'],'strcoll'); var_dump($aInput['values']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PQdXZ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $aInput
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'setlocale'
          4        SEND_VAL                                                 3
          5        SEND_VAL                                                 'tr_TR.utf8'
          6        DO_ICALL                                                 
    5     7        ASSIGN_DIM                                               !0, 'values'
          8        OP_DATA                                                  <array>
    6     9        INIT_FCALL                                               'uasort'
         10        FETCH_DIM_W                                      $4      !0, 'values'
         11        SEND_REF                                                 $4
         12        SEND_VAL                                                 'strcoll'
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~6      !0, 'values'
         16        SEND_VAL                                                 ~6
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.29 ms | 1394 KiB | 21 Q