3v4l.org

run code in 300+ PHP versions simultaneously
<?php function is_between($int,$min,$max){ return ($min<$int && $int<$max); } $r = is_between(9,10,14); var_dump($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Y7VE
function name:  (null)
number of ops:  10
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'is_between'
          1        SEND_VAL                                                 9
          2        SEND_VAL                                                 10
          3        SEND_VAL                                                 14
          4        DO_FCALL                                      0  $1      
          5        ASSIGN                                                   !0, $1
    7     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function is_between:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/9Y7VE
function name:  is_between
number of ops:  9
compiled vars:  !0 = $int, !1 = $min, !2 = $max
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    3     3        IS_SMALLER                                       ~3      !1, !0
          4      > JMPZ_EX                                          ~3      ~3, ->7
          5    >   IS_SMALLER                                       ~4      !0, !2
          6        BOOL                                             ~3      ~4
          7    > > RETURN                                                   ~3
    4     8*     > RETURN                                                   null

End of function is_between

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.89 ms | 1397 KiB | 16 Q