3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = array('Forex+Metals'); // Specify types $needleTypes = array( 'Forex+Metals', 'Metals', 'CFDStocks', 'CFDFutures', 'CFDStocksRU', 'Unknowns', ); // Get valid types $typesStr = array(); foreach ($types as $type) { echo $type; if (in_array($type, $needleTypes)) { $typesStr[] = $type; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/iMmGI
function name:  (null)
number of ops:  16
compiled vars:  !0 = $types, !1 = $needleTypes, !2 = $typesStr, !3 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
   11     2        ASSIGN                                                   !2, <array>
   13     3      > FE_RESET_R                                       $7      !0, ->14
          4    > > FE_FETCH_R                                               $7, !3, ->14
   14     5    >   ECHO                                                     !3
   15     6        INIT_FCALL                                               'in_array'
          7        SEND_VAR                                                 !3
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10      > JMPZ                                                     $8, ->13
   16    11    >   ASSIGN_DIM                                               !2
         12        OP_DATA                                                  !3
   13    13    > > JMP                                                      ->4
         14    >   FE_FREE                                                  $7
   18    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.19 ms | 1395 KiB | 15 Q