3v4l.org

run code in 300+ PHP versions simultaneously
<?php $functions = ['a', 'b']; $reverse = TRUE; $functions = $reverse ? $functions : array_reverse( $functions ); $functions[0](); $functions[1]();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RZdfh
function name:  (null)
number of ops:  17
compiled vars:  !0 = $functions, !1 = $reverse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <true>
    5     2      > JMPZ                                                     !1, ->5
          3    >   QM_ASSIGN                                        ~4      !0
          4      > JMP                                                      ->9
          5    >   INIT_FCALL                                               'array_reverse'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        QM_ASSIGN                                        ~4      $5
          9    >   ASSIGN                                                   !0, ~4
    7    10        FETCH_DIM_R                                      ~7      !0, 0
         11        INIT_DYNAMIC_CALL                                        ~7
         12        DO_FCALL                                      0          
    8    13        FETCH_DIM_R                                      ~9      !0, 1
         14        INIT_DYNAMIC_CALL                                        ~9
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.53 ms | 1394 KiB | 15 Q