3v4l.org

run code in 300+ PHP versions simultaneously
<?php //formula: function numSms ($chaCount) { $sms = 1; if($chaCount > 160) { $extra = fmod(($chaCount - 160) , 153); var_dump($extra); $sms += ceil($extra); } return $sms; } var_dump(numSms(305)); var_dump(numSms(306)); var_dump(numSms(307));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/94e84
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'numsms'
          2        SEND_VAL                                                 305
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   18     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'numsms'
          8        SEND_VAL                                                 306
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
   19    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'numsms'
         14        SEND_VAL                                                 307
         15        DO_FCALL                                      0  $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function numsms:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/94e84
function name:  numSms
number of ops:  19
compiled vars:  !0 = $chaCount, !1 = $sms, !2 = $extra
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !1, 1
    7     2        IS_SMALLER                                               160, !0
          3      > JMPZ                                                     ~4, ->17
    8     4    >   INIT_FCALL                                               'fmod'
          5        SUB                                              ~5      !0, 160
          6        SEND_VAL                                                 ~5
          7        SEND_VAL                                                 153
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    9    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   10    13        INIT_FCALL                                               'ceil'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $9      
         16        ASSIGN_OP                                     1          !1, $9
   13    17    > > RETURN                                                   !1
   14    18*     > RETURN                                                   null

End of function numsms

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.16 ms | 1399 KiB | 22 Q