3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1385874000); $array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1388293200); $array[] = Array(Array(0=>'December', 1=>'1', 2=>'2013'),'stamp'=> 1357189200); usort($array, function($a, $b) { return $a['stamp'] - $b['stamp']; }); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0SYIu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  <array>
    3     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  <array>
    4     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  <array>
    6     6        INIT_FCALL                                               'usort'
          7        SEND_REF                                                 !0
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F0SYIu%3A6%240'
    8     9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    9    11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F0SYIu%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0SYIu
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        FETCH_DIM_R                                      ~2      !0, 'stamp'
          3        FETCH_DIM_R                                      ~3      !1, 'stamp'
          4        SUB                                              ~4      ~2, ~3
          5      > RETURN                                                   ~4
    8     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F0SYIu%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.99 ms | 1399 KiB | 15 Q