3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(1,9,3,5,1,5,3); for ($x = 0; $x < 10; $x++){ usort($test, function($a, $b){ return $a - $b; }); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/mFJcN
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->9
    7     3    >   INIT_FCALL                                               'usort'
          4        SEND_REF                                                 !0
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FmFJcN%3A7%240'
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    6     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10
         10      > JMPNZ                                                    ~7, ->3
    9    11    > > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FmFJcN%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.74 ms | 1395 KiB | 15 Q