3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gatos = array( array( "id" => 1, "name" => "Titus", "fecha" => "2013-05-14 00:00:00", ), array( "id" => 2, "name" => "Gato", "fecha" => "2010-08-11 00:00:00", ), array( "id" => 3, "name" => "Malinche", "fecha" => "2011-02-28 00:00:00", ), array( "id" => 4, "name" => "Pepito", "fecha" => "2008-05-30 00:00:00", ), ); usort($gatos, function($gato1,$gato2){ return strcmp($gato1["fecha"]->format("md"),$gato2["fecha"]->format("md")); }); var_dump($gatos);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HJL4X
function name:  (null)
number of ops:  10
compiled vars:  !0 = $gatos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1        INIT_FCALL                                               'usort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FHJL4X%3A26%240'
   28     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   30     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FHJL4X%3A26%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HJL4X
function name:  {closure}
number of ops:  16
compiled vars:  !0 = $gato1, !1 = $gato2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   27     2        INIT_FCALL                                               'strcmp'
          3        FETCH_DIM_R                                      ~2      !0, 'fecha'
          4        INIT_METHOD_CALL                                         ~2, 'format'
          5        SEND_VAL_EX                                              'md'
          6        DO_FCALL                                      0  $3      
          7        SEND_VAR                                                 $3
          8        FETCH_DIM_R                                      ~4      !1, 'fecha'
          9        INIT_METHOD_CALL                                         ~4, 'format'
         10        SEND_VAL_EX                                              'md'
         11        DO_FCALL                                      0  $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14      > RETURN                                                   $6
   28    15*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FHJL4X%3A26%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.32 ms | 1400 KiB | 19 Q