3v4l.org

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

Function getdir:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IvoL1
function name:  getDir
number of ops:  11
compiled vars:  !0 = $a, !1 = $o, !2 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      2
    4     2        INIT_FCALL                                                   'floor'
          3        DIV                                                  ~3      !0, !1
          4        SEND_VAL                                                     ~3
          5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !2, $4
    5     7        MOD                                                  ~6      !2, 2
          8        IS_IDENTICAL                                         ~7      ~6, 0
          9      > RETURN                                                       ~7
    6    10*     > RETURN                                                       null

End of function getdir

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
203.96 ms | 1991 KiB | 16 Q