3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { define("Foo\TRUE", 0); define("Foo\FALSE", 1); } namespace Foo { if (strpos("foobarbaz", "bar") !== FALSE) { echo "It's There!"; } else { echo "It's Not There!"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZIkti
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'Foo%5CTRUE'
          2        SEND_VAL                                                 0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'Foo%5CFALSE'
          6        SEND_VAL                                                 1
          7        DO_ICALL                                                 
    7     8        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cstrpos'
          9        SEND_VAL_EX                                              'foobarbaz'
         10        SEND_VAL_EX                                              'bar'
         11        DO_FCALL                                      0  $2      
         12        TYPE_CHECK                                  1018          $2
         13      > JMPZ                                                     ~3, ->16
    8    14    >   ECHO                                                     'It%27s+There%21'
         15      > JMP                                                      ->17
   10    16    >   ECHO                                                     'It%27s+Not+There%21'
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.68 ms | 1395 KiB | 17 Q