3v4l.org

run code in 300+ PHP versions simultaneously
<?php $measures = array('byte', 'kilob', 'megab', 'gigab', 'terab'); $index = floor(log(2147483647, 1024)); echo $index; $size = number_format(2147483647 / pow(1024, $index),1); #echo $size; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OeAX3
function name:  (null)
number of ops:  21
compiled vars:  !0 = $measures, !1 = $index, !2 = $size
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'floor'
          2        INIT_FCALL                                               'log'
          3        SEND_VAL                                                 2147483647
          4        SEND_VAL                                                 1024
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    4     9        ECHO                                                     !1
    5    10        INIT_FCALL                                               'number_format'
         11        INIT_FCALL                                               'pow'
         12        SEND_VAL                                                 1024
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $7      
         15        DIV                                              ~8      2147483647, $7
         16        SEND_VAL                                                 ~8
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $9      
         19        ASSIGN                                                   !2, $9
    8    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.13 ms | 1395 KiB | 21 Q