3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isEven($number){ if ($number % 2 == 0) { return true; } return false; } $result = isEven(9); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ksKuf
function name:  (null)
number of ops:  6
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'iseven'
          1        SEND_VAL                                                 9
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   11     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function iseven:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ksKuf
function name:  isEven
number of ops:  7
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        MOD                                              ~1      !0, 2
          2        IS_EQUAL                                                 ~1, 0
          3      > JMPZ                                                     ~2, ->5
    4     4    > > RETURN                                                   <true>
    6     5    > > RETURN                                                   <false>
    8     6*     > RETURN                                                   null

End of function iseven

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.41 ms | 1401 KiB | 14 Q