3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; define('Foo\\TRUE', false); var_dump(TRUE); $a = 0; var_dump('' == $a and 'a' == $a and '' === (string)$a and 'a' === (string)$a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 17
Branch analysis from position: 13
filename:       /in/U13KJ
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cdefine'
          1        SEND_VAL_EX                                              'Foo%5CTRUE'
          2        SEND_VAL_EX                                              <false>
          3        DO_FCALL                                      0          
    4     4        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          5        SEND_VAL_EX                                              <true>
          6        DO_FCALL                                      0          
    5     7        ASSIGN                                                   !0, 0
    6     8        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          9        IS_EQUAL                                         ~4      !0, ''
         10      > JMPZ_EX                                          ~4      ~4, ->13
         11    >   IS_EQUAL                                         ~5      !0, 'a'
         12        BOOL                                             ~4      ~5
         13    > > JMPZ_EX                                          ~4      ~4, ->17
         14    >   CAST                                          6  ~6      !0
         15        IS_IDENTICAL                                     ~7      ~6, ''
         16        BOOL                                             ~4      ~7
         17    > > JMPZ_EX                                          ~4      ~4, ->21
         18    >   CAST                                          6  ~8      !0
         19        IS_IDENTICAL                                     ~9      ~8, 'a'
         20        BOOL                                             ~4      ~9
         21    >   SEND_VAL_EX                                              ~4
         22        DO_FCALL                                      0          
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.13 ms | 1395 KiB | 17 Q