3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 2; if ($value == 0) { xdebug_var_dump($value); } elseif ($value == 1) { xdebug_var_dump($value); } else { xdebug_var_dump($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UN0vL
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   QM_ASSIGN                                                !0
   4     1        IS_NOT_EQUAL                                     ~2      !0, 0
         2      > JMPZ                                                     ~2, ->7
   5     3    >   INIT_FCALL_BY_NAME                                       'xdebug_var_dump'
         4        SEND_VAR_EX                                              !0
         5        DO_FCALL                                      0          
         6      > JMP                                                      ->16
   6     7    >   IS_NOT_EQUAL                                     ~4      !0, 1
         8      > JMPZ                                                     ~4, ->13
   7     9    >   INIT_FCALL_BY_NAME                                       'xdebug_var_dump'
        10        SEND_VAR_EX                                              !0
        11        DO_FCALL                                      0          
        12      > JMP                                                      ->16
   9    13    >   INIT_FCALL_BY_NAME                                       'xdebug_var_dump'
        14        SEND_VAR_EX                                              !0
        15        DO_FCALL                                      0          
  10    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0