3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($check, $interval=null) { if ($check == 'Recurring Alarm' && empty($interval)) return false; return true; } $result = f('Recurring Alarm'); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LvErY
function name:  (null)
number of ops:  8
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 'Recurring+Alarm'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   11     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/LvErY
function name:  f
number of ops:  10
compiled vars:  !0 = $check, !1 = $interval
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
    5     2        IS_EQUAL                                         ~2      !0, 'Recurring+Alarm'
          3      > JMPZ_EX                                          ~2      ~2, ->6
          4    >   ISSET_ISEMPTY_CV                                 ~3      !1
          5        BOOL                                             ~2      ~3
          6    > > JMPZ                                                     ~2, ->8
    6     7    > > RETURN                                                   <false>
    7     8    > > RETURN                                                   <true>
    8     9*     > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.66 ms | 1389 KiB | 16 Q