3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'post_max_size in bytes = '.return_byte("8M"); function return_bytes($val) { $val = trim($val); $last =str_split($val); $last[1]=$valu; switch($valu) { case 'M': echo 'm'; break; default: return $val; } } echo 'post_max_size in bytes = ' .return_byte('8M'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ui472
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'return_byte'
          1        SEND_VAL_EX                                              '8M'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      'post_max_size+in+bytes+%3D+', $0
          4        ECHO                                                     ~1
   16     5        INIT_FCALL_BY_NAME                                       'return_byte'
          6        SEND_VAL_EX                                              '8M'
          7        DO_FCALL                                      0  $2      
          8        CONCAT                                           ~3      'post_max_size+in+bytes+%3D+', $2
          9        ECHO                                                     ~3
   18    10      > RETURN                                                   1

Function return_bytes:
Finding entry points
Branch analysis from position: 0
3 jumps found. (Code = 188) Position 1 = 15, Position 2 = 17, Position 3 = 12
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 15
filename:       /in/ui472
function name:  return_bytes
number of ops:  19
compiled vars:  !0 = $val, !1 = $last, !2 = $valu
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    5     5        INIT_FCALL                                               'str_split'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    6     9        ASSIGN_DIM                                               !1, 1
         10        OP_DATA                                                  !2
    7    11      > SWITCH_STRING                                            !2, [ 'M':->15, ], ->17
    9    12    >   IS_EQUAL                                                 !2, 'M'
         13      > JMPNZ                                                    ~8, ->15
         14    > > JMP                                                      ->17
   10    15    >   ECHO                                                     'm'
   11    16      > JMP                                                      ->18
   13    17    > > RETURN                                                   !0
   15    18    > > RETURN                                                   null

End of function return_bytes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.73 ms | 1396 KiB | 17 Q