3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parent[0] = array(0, 0, 0); $parent[2] = array("foo", "bar", "b", "a", "z"); $parent[1] = array(4, 2); $parent[5] = array(11, 2); $parent[3] = array(1, 21); $parent[4] = array(11, 1); usort($parent, fn($a, $b) => count($a) <=> count($b)); var_export($parent);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sO7X5
function name:  (null)
number of ops:  21
compiled vars:  !0 = $parent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  <array>
    4     2        ASSIGN_DIM                                               !0, 2
          3        OP_DATA                                                  <array>
    5     4        ASSIGN_DIM                                               !0, 1
          5        OP_DATA                                                  <array>
    6     6        ASSIGN_DIM                                               !0, 5
          7        OP_DATA                                                  <array>
    7     8        ASSIGN_DIM                                               !0, 3
          9        OP_DATA                                                  <array>
    8    10        ASSIGN_DIM                                               !0, 4
         11        OP_DATA                                                  <array>
   10    12        INIT_FCALL                                               'usort'
         13        SEND_REF                                                 !0
         14        DECLARE_LAMBDA_FUNCTION                          ~7      [0]
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
   11    17        INIT_FCALL                                               'var_export'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sO7X5
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        COUNT                                            ~2      !0
          3        COUNT                                            ~3      !1
          4        SPACESHIP                                        ~4      ~2, ~3
          5      > RETURN                                                   ~4
          6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.58 ms | 1002 KiB | 15 Q