3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('DIR_MODELS','test'); define('DIRNAME_AUTHENTICATION','derp'); define('DIRNAME_AUTHENITCATION','derp'); define('DIRNAME_AUTHENITCATION_TYPES','derptest'); define('DIRNAME_AUTHENTICATION_TYPES','derptest'); $file = 'test.php'; $atHandle = 'testhandle'; echo (implode('/',array(DIR_MODELS,DIRNAME_AUTHENTICATION,DIRNAME_AUTHENTICATION_TYPES,$atHandle,$_file)) == DIR_MODELS . '/' . DIRNAME_AUTHENITCATION . '/' . DIRNAME_AUTHENITCATION_TYPES . '/' . $atHandle . '/' . $_file ? 'WORKED':'failed');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qv5HN
function name:  (null)
number of ops:  52
compiled vars:  !0 = $file, !1 = $atHandle, !2 = $_file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DIR_MODELS'
          2        SEND_VAL                                                 'test'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'DIRNAME_AUTHENTICATION'
          6        SEND_VAL                                                 'derp'
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'DIRNAME_AUTHENITCATION'
         10        SEND_VAL                                                 'derp'
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'define'
         13        SEND_VAL                                                 'DIRNAME_AUTHENITCATION_TYPES'
         14        SEND_VAL                                                 'derptest'
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'define'
         17        SEND_VAL                                                 'DIRNAME_AUTHENTICATION_TYPES'
         18        SEND_VAL                                                 'derptest'
         19        DO_ICALL                                                 
    8    20        ASSIGN                                                   !0, 'test.php'
    9    21        ASSIGN                                                   !1, 'testhandle'
   10    22        INIT_FCALL                                               'implode'
         23        SEND_VAL                                                 '%2F'
         24        FETCH_CONSTANT                                   ~10     'DIR_MODELS'
         25        INIT_ARRAY                                       ~11     ~10
         26        FETCH_CONSTANT                                   ~12     'DIRNAME_AUTHENTICATION'
         27        ADD_ARRAY_ELEMENT                                ~11     ~12
         28        FETCH_CONSTANT                                   ~13     'DIRNAME_AUTHENTICATION_TYPES'
         29        ADD_ARRAY_ELEMENT                                ~11     ~13
         30        ADD_ARRAY_ELEMENT                                ~11     !1
         31        ADD_ARRAY_ELEMENT                                ~11     !2
         32        SEND_VAL                                                 ~11
         33        DO_ICALL                                         $14     
         34        FETCH_CONSTANT                                   ~15     'DIR_MODELS'
         35        CONCAT                                           ~16     ~15, '%2F'
         36        FETCH_CONSTANT                                   ~17     'DIRNAME_AUTHENITCATION'
         37        CONCAT                                           ~18     ~16, ~17
         38        CONCAT                                           ~19     ~18, '%2F'
         39        FETCH_CONSTANT                                   ~20     'DIRNAME_AUTHENITCATION_TYPES'
         40        CONCAT                                           ~21     ~19, ~20
         41        CONCAT                                           ~22     ~21, '%2F'
         42        CONCAT                                           ~23     ~22, !1
         43        CONCAT                                           ~24     ~23, '%2F'
         44        CONCAT                                           ~25     ~24, !2
         45        IS_EQUAL                                                 $14, ~25
         46      > JMPZ                                                     ~26, ->49
         47    >   QM_ASSIGN                                        ~27     'WORKED'
         48      > JMP                                                      ->50
         49    >   QM_ASSIGN                                        ~27     'failed'
         50    >   ECHO                                                     ~27
         51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.68 ms | 1392 KiB | 17 Q