3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tenant['Leases'] = array(); usort($tenant['Leases'], function ($a, $b) { $t1 = strtotime($a['MoveInDate']); $t2 = strtotime($b['MoveInDate']); return ($t2 - $t1); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BRioh
function name:  (null)
number of ops:  9
compiled vars:  !0 = $tenant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'Leases'
          1        OP_DATA                                                  <array>
    5     2        INIT_FCALL                                               'usort'
          3        FETCH_DIM_W                                      $2      !0, 'Leases'
          4        SEND_REF                                                 $2
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FBRioh%3A5%240'
    9     6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FBRioh%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BRioh
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $t1, !3 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'strtotime'
          3        FETCH_DIM_R                                      ~4      !0, 'MoveInDate'
          4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_FCALL                                               'strtotime'
          8        FETCH_DIM_R                                      ~7      !1, 'MoveInDate'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    8    12        SUB                                              ~10     !3, !2
         13      > RETURN                                                   ~10
    9    14*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FBRioh%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
127.54 ms | 1400 KiB | 17 Q