3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 12; switch (true) { case is_numeric($x): echo 'is numeric'; break; case is_string($x): echo 'is string'; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
filename:       /in/QLEBT
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 12
    7     1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4      > JMPNZ                                                    $3, ->8
   10     5    >   TYPE_CHECK                                   64          !0
          6      > JMPNZ                                                    ~4, ->10
          7    > > JMP                                                      ->12
    8     8    >   ECHO                                                     'is+numeric'
    9     9      > JMP                                                      ->12
   11    10    >   ECHO                                                     'is+string'
   12    11      > JMP                                                      ->12
   13    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.03 ms | 1394 KiB | 15 Q