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($value[$i]) . ' = ' . $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/aGTD3
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 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
Branch analysis from position: 3
filename:       /in/aGTD3
function name:  removeWhiteSpace
number of ops:  21
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                                                      ->17
    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        FETCH_DIM_R                                      ~7      !0, !1
          9        STRLEN                                           ~8      ~7
         10        CONCAT                                           ~9      'length%3A+', ~8
         11        CONCAT                                           ~10     ~9, '+%3D+'
         12        FETCH_DIM_R                                      ~11     !0, !1
         13        CONCAT                                           ~12     ~10, ~11
         14        CONCAT                                           ~13     ~12, '%3Cbr%2F%3E'
         15        ECHO                                                     ~13
    4    16        PRE_INC                                                  !1
         17    >   COUNT                                            ~15     !0
         18        IS_SMALLER_OR_EQUAL                                      !1, ~15
         19      > JMPNZ                                                    ~16, ->3
   10    20    > > RETURN                                                   null

End of function removewhitespace

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.11 ms | 1390 KiB | 16 Q