3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; define('Foo\\true',false,true); $k = true; var_dump($k); $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 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 19
Branch analysis from position: 15
filename:       /in/JLe8G
function name:  (null)
number of ops:  26
compiled vars:  !0 = $k, !1 = $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        SEND_VAL_EX                                              <true>
          4        DO_FCALL                                      0          
    4     5        ASSIGN                                                   !0, <true>
    5     6        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
    6     9        ASSIGN                                                   !1, 0
    7    10        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
         11        IS_EQUAL                                         ~6      !1, ''
         12      > JMPZ_EX                                          ~6      ~6, ->15
         13    >   IS_EQUAL                                         ~7      !1, 'a'
         14        BOOL                                             ~6      ~7
         15    > > JMPZ_EX                                          ~6      ~6, ->19
         16    >   CAST                                          6  ~8      !1
         17        IS_IDENTICAL                                     ~9      ~8, ''
         18        BOOL                                             ~6      ~9
         19    > > JMPZ_EX                                          ~6      ~6, ->23
         20    >   CAST                                          6  ~10     !1
         21        IS_IDENTICAL                                     ~11     ~10, 'a'
         22        BOOL                                             ~6      ~11
         23    >   SEND_VAL_EX                                              ~6
         24        DO_FCALL                                      0          
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1400 KiB | 17 Q