3v4l.org

run code in 300+ PHP versions simultaneously
<?php function removeWhiteSpace($value) { for($i=0;$i<=count($value);$i++) { //$value[$i]=trim($value[$i]); $temp=trim($value[$i]); echo 'length: ' . strlen($temp) . ' = ' . $value[$i] . '<br/>'; } //return $value; } removeWhiteSpace(array("donkey ","cat"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Zgof
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'removewhitespace'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function removewhitespace:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
filename:       /in/9Zgof
function name:  removeWhiteSpace
number of ops:  20
compiled vars:  !0 = $value, !1 = $i, !2 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->16
    6     3    >   INIT_FCALL                                               'trim'
          4        FETCH_DIM_R                                      ~4      !0, !1
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    7     8        STRLEN                                           ~7      !2
          9        CONCAT                                           ~8      'length%3A+', ~7
         10        CONCAT                                           ~9      ~8, '+%3D+'
         11        FETCH_DIM_R                                      ~10     !0, !1
         12        CONCAT                                           ~11     ~9, ~10
         13        CONCAT                                           ~12     ~11, '%3Cbr%2F%3E'
         14        ECHO                                                     ~12
    4    15        PRE_INC                                                  !1
         16    >   COUNT                                            ~14     !0
         17        IS_SMALLER_OR_EQUAL                                      !1, ~14
         18      > JMPNZ                                                    ~15, ->3
   10    19    > > RETURN                                                   null

End of function removewhitespace

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.05 ms | 1399 KiB | 16 Q