3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abc(){ $sortArray = array(2,3,4,6,5,8,7,9); $inputArray = array(); for($i=1;$i<=20;$i++) { if(in_array($i,$sortArray)){ array_push($inputArray , $i); } } return $inputArray; } $desired = abc(); foreach($desired as $val) { echo $val. "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/jCI1q
function name:  (null)
number of ops:  10
compiled vars:  !0 = $desired, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'abc'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
   20     3      > FE_RESET_R                                       $4      !0, ->8
          4    > > FE_FETCH_R                                               $4, !1, ->8
   22     5    >   CONCAT                                           ~5      !1, '%0A'
          6        ECHO                                                     ~5
   20     7      > JMP                                                      ->4
          8    >   FE_FREE                                                  $4
   23     9      > RETURN                                                   1

Function abc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 13
filename:       /in/jCI1q
function name:  abc
number of ops:  18
compiled vars:  !0 = $sortArray, !1 = $inputArray, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
    9     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->14
   11     4    >   INIT_FCALL                                               'in_array'
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->13
   12     9    >   INIT_FCALL                                               'array_push'
         10        SEND_REF                                                 !1
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
    9    13    >   PRE_INC                                                  !2
         14    >   IS_SMALLER_OR_EQUAL                                      !2, 20
         15      > JMPNZ                                                    ~9, ->4
   15    16    > > RETURN                                                   !1
   17    17*     > RETURN                                                   null

End of function abc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.47 ms | 1399 KiB | 18 Q