3v4l.org

run code in 300+ PHP versions simultaneously
<?php $argv[1] = '24601.283'; list($a, $b)=explode('.',$argv[1]); $i = 1; while($i > count($a)) { $c[] = floor($a / (10 * $i++)); } print_r($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 14
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 14
Branch analysis from position: 25
Branch analysis from position: 14
filename:       /in/YpDJ7
function name:  (null)
number of ops:  29
compiled vars:  !0 = $argv, !1 = $a, !2 = $b, !3 = $i, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  '24601.283'
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '.'
          4        FETCH_DIM_R                                      ~6      !0, 1
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                         $7      
          7        FETCH_LIST_R                                     $8      $7, 0
          8        ASSIGN                                                   !1, $8
          9        FETCH_LIST_R                                     $10     $7, 1
         10        ASSIGN                                                   !2, $10
         11        FREE                                                     $7
    7    12        ASSIGN                                                   !3, 1
    8    13      > JMP                                                      ->22
    9    14    >   INIT_FCALL                                               'floor'
         15        POST_INC                                         ~14     !3
         16        MUL                                              ~15     ~14, 10
         17        DIV                                              ~16     !1, ~15
         18        SEND_VAL                                                 ~16
         19        DO_ICALL                                         $17     
         20        ASSIGN_DIM                                               !4
         21        OP_DATA                                                  $17
    8    22    >   COUNT                                            ~18     !1
         23        IS_SMALLER                                               ~18, !3
         24      > JMPNZ                                                    ~19, ->14
   12    25    >   INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.04 ms | 1396 KiB | 19 Q