3v4l.org

run code in 300+ PHP versions simultaneously
<?php usort($accounts, function($a, $b) { return ($a->first_name == $b->first_name ? strcmp($a->last_name, $b->last_name) : strcmp($a->first_name, $b->first_name)); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sRXfH
function name:  (null)
number of ops:  6
compiled vars:  !0 = $accounts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'usort'
          1        SEND_REF                                                 !0
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FsRXfH%3A2%240'
    5     3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FsRXfH%3A2%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sRXfH
function name:  {closure}
number of ops:  23
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        FETCH_OBJ_R                                      ~2      !0, 'first_name'
          3        FETCH_OBJ_R                                      ~3      !1, 'first_name'
          4        IS_EQUAL                                                 ~2, ~3
          5      > JMPZ                                                     ~4, ->14
          6    >   INIT_FCALL                                               'strcmp'
          7        FETCH_OBJ_R                                      ~5      !0, 'last_name'
          8        SEND_VAL                                                 ~5
          9        FETCH_OBJ_R                                      ~6      !1, 'last_name'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        QM_ASSIGN                                        ~8      $7
         13      > JMP                                                      ->21
         14    >   INIT_FCALL                                               'strcmp'
         15        FETCH_OBJ_R                                      ~9      !0, 'first_name'
         16        SEND_VAL                                                 ~9
         17        FETCH_OBJ_R                                      ~10     !1, 'first_name'
         18        SEND_VAL                                                 ~10
         19        DO_ICALL                                         $11     
         20        QM_ASSIGN                                        ~8      $11
         21    > > RETURN                                                   ~8
    5    22*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FsRXfH%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.9 ms | 1396 KiB | 17 Q