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; echo $valu; switch($valu) { case 'M': echo 'm'; break; default: return $val; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JraLT
function name:  (null)
number of ops:  6
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
   19     5      > RETURN                                                   1

Function return_bytes:
Finding entry points
Branch analysis from position: 0
3 jumps found. (Code = 188) Position 1 = 16, Position 2 = 18, Position 3 = 13
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 16
filename:       /in/JraLT
function name:  return_bytes
number of ops:  20
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        ECHO                                                     !2
    8    12      > SWITCH_STRING                                            !2, [ 'M':->16, ], ->18
   10    13    >   IS_EQUAL                                                 !2, 'M'
         14      > JMPNZ                                                    ~8, ->16
         15    > > JMP                                                      ->18
   11    16    >   ECHO                                                     'm'
   12    17      > JMP                                                      ->19
   14    18    > > RETURN                                                   !0
   16    19    > > RETURN                                                   null

End of function return_bytes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.26 ms | 1396 KiB | 17 Q