3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 1; $count = 50; $total = 18887; $error_total = 0; for ($start = 1; $start < $total; $start += $count) { $error_total += min(($start - 1) + $count, $total); } echo $error_total."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/dYPBe
function name:  (null)
number of ops:  19
compiled vars:  !0 = $start, !1 = $count, !2 = $total, !3 = $error_total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 50
    5     2        ASSIGN                                                   !2, 18887
    7     3        ASSIGN                                                   !3, 0
    8     4        ASSIGN                                                   !0, 1
          5      > JMP                                                      ->14
    9     6    >   INIT_FCALL                                               'min'
          7        SUB                                              ~9      !0, 1
          8        ADD                                              ~10     ~9, !1
          9        SEND_VAL                                                 ~10
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $11     
         12        ASSIGN_OP                                     1          !3, $11
    8    13        ASSIGN_OP                                     1          !0, !1
         14    >   IS_SMALLER                                               !0, !2
         15      > JMPNZ                                                    ~14, ->6
   12    16    >   CONCAT                                           ~15     !3, '%0A'
         17        ECHO                                                     ~15
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.54 ms | 1395 KiB | 15 Q