3v4l.org

run code in 300+ PHP versions simultaneously
<?php function next_business_day($n) { return (($n%5)+1); } echo(next_business_day(4));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1BgSQ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'next_business_day'
          1        SEND_VAL                                                 4
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function next_business_day:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1BgSQ
function name:  next_business_day
number of ops:  5
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        MOD                                              ~1      !0, 5
          2        ADD                                              ~2      ~1, 1
          3      > RETURN                                                   ~2
    6     4*     > RETURN                                                   null

End of function next_business_day

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.02 ms | 1396 KiB | 14 Q