3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array( new DateTime('2013-05-01'), new DateTime('2013-04-01'), ); usort($dates, function ($a, $b) { if ($a == $b) { return 0; } });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6MAfq
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dates
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'DateTime'
          1        SEND_VAL_EX                                              '2013-05-01'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~3      $1
    5     4        NEW                                              $4      'DateTime'
          5        SEND_VAL_EX                                              '2013-04-01'
          6        DO_FCALL                                      0          
          7        ADD_ARRAY_ELEMENT                                ~3      $4
    3     8        ASSIGN                                                   !0, ~3
    8     9        INIT_FCALL                                               'usort'
         10        SEND_REF                                                 !0
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F6MAfq%3A8%240'
   12    12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2F6MAfq%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1395 KiB | 15 Q