3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['foo-test' => [1], '-' => [2], 'bar-test' => [3]]; uksort($a, function($x, $y) use (&$a) { // global $a; if (!isset($a[$x])) { throw new Exception("$x"); } if (!isset($a[$y])) { throw new Exception("$y"); } return $x < $y; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kZ28v
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'uksort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkZ28v%3A4%240'
          4        BIND_LEXICAL                                             ~2, !0
   16     5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FkZ28v%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kZ28v
function name:  {closure}
number of ops:  22
compiled vars:  !0 = $x, !1 = $y, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
    7     3        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      !2, !0
          4        BOOL_NOT                                         ~4      ~3
          5      > JMPZ                                                     ~4, ->11
    8     6    >   NEW                                              $5      'Exception'
          7        CAST                                          6  ~6      !0
          8        SEND_VAL_EX                                              ~6
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $5
   11    11    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !2, !1
         12        BOOL_NOT                                         ~9      ~8
         13      > JMPZ                                                     ~9, ->19
   12    14    >   NEW                                              $10     'Exception'
         15        CAST                                          6  ~11     !1
         16        SEND_VAL_EX                                              ~11
         17        DO_FCALL                                      0          
         18      > THROW                                         0          $10
   15    19    >   IS_SMALLER                                       ~13     !0, !1
         20      > RETURN                                                   ~13
   16    21*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FkZ28v%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.84 ms | 1396 KiB | 15 Q