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 . PHP_EOL; 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 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/craat
function name:  (null)
number of ops:  17
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, ->15
          4    > > FE_FETCH_R                                               $7, !3, ->15
   14     5    >   CONCAT                                           ~8      !3, '%0A'
          6        ECHO                                                     ~8
   16     7        INIT_FCALL                                               'in_array'
          8        SEND_VAR                                                 !3
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11      > JMPZ                                                     $9, ->14
   17    12    >   ASSIGN_DIM                                               !2
         13        OP_DATA                                                  !3
   13    14    > > JMP                                                      ->4
         15    >   FE_FREE                                                  $7
   19    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.15 ms | 1395 KiB | 15 Q