3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $x = [ 2, 3, 0, 4]; usort($x, fn($a, $b) => $a/$b); } catch (\Throwable $e) { var_dump(serialize($e)); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PGKnl
function name:  (null)
number of ops:  15
compiled vars:  !0 = $x, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'usort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FPGKnl%3A5%240'
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
          6      > JMP                                                      ->14
    7     7  E > > CATCH                                       last         'Throwable'
    8     8    >   INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'serialize'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
    9    14    > > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FPGKnl%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.97 ms | 1395 KiB | 19 Q