3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'magic == phun'; (@__MPHUN__ == '__MPHUN__') && define('__MPHUN__', strtoupper($str)); echo __MPHUN__;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/NoQTt
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'magic+%3D%3D+phun'
    3     1        BEGIN_SILENCE                                    ~2      
          2        FETCH_CONSTANT                                   ~3      '__MPHUN__'
          3        END_SILENCE                                              ~2
          4        IS_EQUAL                                         ~4      ~3, '__MPHUN__'
          5      > JMPZ_EX                                          ~4      ~4, ->14
          6    >   INIT_FCALL                                               'define'
          7        SEND_VAL                                                 '__MPHUN__'
          8        INIT_FCALL                                               'strtoupper'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        BOOL                                             ~4      $6
    4    14    >   FETCH_CONSTANT                                   ~7      '__MPHUN__'
         15        ECHO                                                     ~7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.17 ms | 1386 KiB | 17 Q