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) { if (in_array($type, $needleTypes)) { echo $type . "\n"; $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 = 10, Position 2 = 14
Branch analysis from position: 10
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/st21I
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
   16     5    >   INIT_FCALL                                               'in_array'
          6        SEND_VAR                                                 !3
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9      > JMPZ                                                     $8, ->14
   17    10    >   CONCAT                                           ~9      !3, '%0A'
         11        ECHO                                                     ~9
   18    12        ASSIGN_DIM                                               !2
         13        OP_DATA                                                  !3
   13    14    > > JMP                                                      ->4
         15    >   FE_FREE                                                  $7
   20    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.29 ms | 1395 KiB | 15 Q