3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '1'; echo in_array($test, range(1,12)) ? $test : '0';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TiXCV
function name:  (null)
number of ops:  15
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1'
    5     1        INIT_FCALL                                               'in_array'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 12
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9      > JMPZ                                                     $3, ->12
         10    >   QM_ASSIGN                                        ~4      !0
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~4      '0'
         13    >   ECHO                                                     ~4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.99 ms | 1394 KiB | 17 Q