3v4l.org

run code in 300+ PHP versions simultaneously
<?php $requiredSections = array('FILE'); $c = (array)"TEST" != $requiredSections ? true : false; var_dump($c);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HunLQ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $requiredSections, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        CAST                                          7  ~3      'TEST'
          2        IS_NOT_EQUAL                                             !0, ~3
          3      > JMPZ                                                     ~4, ->6
          4    >   QM_ASSIGN                                        ~5      <true>
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~5      <false>
          7    >   ASSIGN                                                   !1, ~5
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.91 ms | 1394 KiB | 15 Q