3v4l.org

run code in 300+ PHP versions simultaneously
<?php $option = "2"; echo int("2 blala"); switch($option) { case "2 this is obviously not the right one": echo "First option chosen"; break; case 2: echo "Second option chosen"; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
filename:       /in/aHkj9
function name:  (null)
number of ops:  15
compiled vars:  !0 = $option
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2'
    4     1        INIT_FCALL_BY_NAME                                       'int'
          2        SEND_VAL_EX                                              '2+blala'
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
    7     5        IS_EQUAL                                                 !0, '2+this+is+obviously+not+the+right+one'
          6      > JMPNZ                                                    ~3, ->10
   10     7    >   IS_EQUAL                                                 !0, 2
          8      > JMPNZ                                                    ~3, ->12
          9    > > JMP                                                      ->14
    8    10    >   ECHO                                                     'First+option+chosen'
    9    11      > JMP                                                      ->14
   11    12    >   ECHO                                                     'Second+option+chosen'
   12    13      > JMP                                                      ->14
   13    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.41 ms | 1393 KiB | 13 Q