3v4l.org

run code in 500+ PHP versions simultaneously
<?php function checkBetween($value, $lowerBound = -INF, $upperBound = INF) { return $value > $lowerBound && $value < $upperBound; } var_dump( checkBetween (1) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TYkCZ
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'checkbetween'
          2        SEND_VAL                                                     1
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                                     
          6      > RETURN                                                       1

Function checkbetween:
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/TYkCZ
function name:  checkBetween
number of ops:  9
compiled vars:  !0 = $value, !1 = $lowerBound, !2 = $upperBound
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      <const ast>
          2        RECV_INIT                                            !2      <const ast>
    4     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
    5     8*     > RETURN                                                       null

End of function checkbetween

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.9 ms | 2982 KiB | 15 Q