3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stringsRearrangement($inputArray) { foreach($inputArray as $ele) { return strlen($ele)/2 ===0; } } $echo (stringRearrangement(["ab", "bb", "aa"]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JSQFc
function name:  (null)
number of ops:  7
compiled vars:  !0 = $echo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_DYNAMIC_CALL                                        !0
          1        INIT_FCALL_BY_NAME                                       'stringRearrangement'
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0  $1      
          4        SEND_VAR_NO_REF_EX                                       $1
          5        DO_FCALL                                      0          
   10     6      > RETURN                                                   1

Function stringsrearrangement:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/JSQFc
function name:  stringsRearrangement
number of ops:  11
compiled vars:  !0 = $inputArray, !1 = $ele
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1      > FE_RESET_R                                       $2      !0, ->9
          2    > > FE_FETCH_R                                               $2, !1, ->9
    5     3    >   STRLEN                                           ~3      !1
          4        DIV                                              ~4      ~3, 2
          5        IS_IDENTICAL                                     ~5      ~4, 0
          6        FE_FREE                                                  $2
          7      > RETURN                                                   ~5
    4     8*       JMP                                                      ->2
          9    >   FE_FREE                                                  $2
    7    10      > RETURN                                                   null

End of function stringsrearrangement

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.09 ms | 995 KiB | 13 Q