3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(50,1000,50); $input = 34; var_dump(in_array($input, $range)); $input = 150; var_dump(in_array($input, $range));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3ToT9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $range, !1 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 50
          2        SEND_VAL                                                 1000
          3        SEND_VAL                                                 50
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        ASSIGN                                                   !1, 34
    6     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'in_array'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
    9    14        ASSIGN                                                   !1, 150
   11    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'in_array'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.66 ms | 1395 KiB | 19 Q