3v4l.org

run code in 300+ PHP versions simultaneously
<?php function return_bytes($val){ $val = trim($val); //$last =str_split($val); $string=strpbrk($val, 'M'); // echo $last[1]; echo $string; } echo "las".return_bytes("8M"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iKh7j
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'return_bytes'
          1        SEND_VAL                                                 '8M'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      'las', $0
          4        ECHO                                                     ~1
   13     5      > RETURN                                                   1

Function return_bytes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iKh7j
function name:  return_bytes
number of ops:  12
compiled vars:  !0 = $val, !1 = $string
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                                         $2      
          4        ASSIGN                                                   !0, $2
    7     5        INIT_FCALL                                               'strpbrk'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'M'
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    9    10        ECHO                                                     !1
   10    11      > RETURN                                                   null

End of function return_bytes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.35 ms | 1401 KiB | 18 Q