3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results[1] = 'Controller'; $valid_segments = array( 'Attribute' => 'attributes', 'MenuItem' => 'menu_items', 'Authentication' => 'authentication', 'Block' => 'blocks', 'Theme' => 'themes', 'Controller' => 'controllers', 'Job' => 'jobs', 'Src' => 'src' ); if (!in_array($results[1], array_keys($valid_segments))) { die('FAILES'); } die('WORKS');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/WXo5t
function name:  (null)
number of ops:  16
compiled vars:  !0 = $results, !1 = $valid_segments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 1
          1        OP_DATA                                                  'Controller'
    5     2        ASSIGN                                                   !1, <array>
   16     3        INIT_FCALL                                               'in_array'
          4        FETCH_DIM_R                                      ~4      !0, 1
          5        SEND_VAL                                                 ~4
          6        INIT_FCALL                                               'array_keys'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        BOOL_NOT                                         ~7      $6
         12      > JMPZ                                                     ~7, ->14
   17    13    > > EXIT                                                     'FAILES'
   20    14    > > EXIT                                                     'WORKS'
         15*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.79 ms | 1394 KiB | 17 Q