3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('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/LFbHo
function name:  (null)
number of ops:  26
compiled vars:  !0 = $k, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'true'
          2        SEND_VAL                                                 <false>
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                                 
    3     5        ASSIGN                                                   !0, <true>
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        ASSIGN                                                   !1, 0
    6    10        INIT_FCALL                                               'var_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                                                 ~6
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.65 ms | 1395 KiB | 17 Q