3v4l.org

run code in 300+ PHP versions simultaneously
<?php $horas_totais = 27; $horario_dos_km = 9.3; $getallours = []; $rasteach = round($horas_totais / $horario_dos_km, 1, PHP_ROUND_HALF_UP); $tot = 0; for ($z = 0; $z < $horario_dos_km - 1; $z++) { $tot += $rasteach; $getallours[] = $tot; } $getallours[] = $horas_totais; print_r($getallours);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 13
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 13
Branch analysis from position: 20
Branch analysis from position: 13
filename:       /in/D6pGQ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $horas_totais, !1 = $horario_dos_km, !2 = $getallours, !3 = $rasteach, !4 = $tot, !5 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 27
    3     1        ASSIGN                                                   !1, 9.3
    4     2        ASSIGN                                                   !2, <array>
    5     3        INIT_FCALL                                               'round'
          4        DIV                                              ~9      !0, !1
          5        SEND_VAL                                                 ~9
          6        SEND_VAL                                                 1
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !3, $10
    6    10        ASSIGN                                                   !4, 0
    7    11        ASSIGN                                                   !5, 0
         12      > JMP                                                      ->17
    8    13    >   ASSIGN_OP                                     1          !4, !3
    9    14        ASSIGN_DIM                                               !2
         15        OP_DATA                                                  !4
    7    16        PRE_INC                                                  !5
         17    >   SUB                                              ~17     !1, 1
         18        IS_SMALLER                                               !5, ~17
         19      > JMPNZ                                                    ~18, ->13
   11    20    >   ASSIGN_DIM                                               !2
         21        OP_DATA                                                  !0
   13    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.97 ms | 1003 KiB | 15 Q