3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/eD7Gi
function name:  (null)
number of ops:  16
compiled vars:  !0 = $values, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN                                                   !0, <array>
   33     1      > FE_RESET_R                                       $3      !0, ->14
          2    > > FE_FETCH_R                                               $3, !1, ->14
   34     3    >   INIT_FCALL                                               'number_format'
          4        SEND_VAR                                                 !1
          5        INIT_FCALL                                               'get_decimals'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 5
          8        DO_FCALL                                      0  $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      $5, '%0A'
         12        ECHO                                                     ~6
   33    13      > JMP                                                      ->2
         14    >   FE_FREE                                                  $3
   35    15      > RETURN                                                   1

Function get_decimals:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 8
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 8
Branch analysis from position: 25
Branch analysis from position: 8
filename:       /in/eD7Gi
function name:  get_decimals
number of ops:  27
compiled vars:  !0 = $value, !1 = $min, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV_INIT                                        !0      0
          1        RECV_INIT                                        !1      2
   10     2        IS_IDENTICAL                                             !0, '0.00'
          3      > JMPZ                                                     ~3, ->5
   11     4    > > RETURN                                                   !1
   13     5    >   STRLEN                                           ~4      !0
          6        ASSIGN                                                   !2, ~4
          7      > JMP                                                      ->23
   14     8    >   INIT_FCALL                                               'strstr'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'str_repeat'
         11        SEND_VAL                                                 '0'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $6      
         14        CONCAT                                           ~7      '0.', $6
         15        SEND_VAL                                                 ~7
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $8      
         18        TYPE_CHECK                                  1018          $8
         19      > JMPZ                                                     ~9, ->22
   15    20    >   ADD                                              ~10     !2, !1
         21      > RETURN                                                   ~10
   13    22    >   PRE_DEC                                                  !2
         23    >   IS_SMALLER_OR_EQUAL                                      !1, !2
         24      > JMPNZ                                                    ~12, ->8
   18    25    > > RETURN                                                   !1
   19    26*     > RETURN                                                   null

End of function get_decimals

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.61 ms | 976 KiB | 17 Q