3v4l.org

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

Function return_bytes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ga5HS
function name:  return_bytes
number of ops:  13
compiled vars:  !0 = $val, !1 = $last, !2 = $valu
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        INIT_FCALL                                               'str_split'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    7     9        ASSIGN_DIM                                               !1, 1
         10        OP_DATA                                                  !2
    8    11        ECHO                                                     !2
    9    12      > RETURN                                                   null

End of function return_bytes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.5 ms | 1386 KiB | 17 Q