3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function(){}; var_dump('' == $a and 'a' == $a); var_dump('' === (string)$a and 'a' === (string)$a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 7
filename:       /in/lRsM9
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FlRsM9%3A2%240'
          1        ASSIGN                                                   !0, ~1
    3     2        INIT_FCALL                                               'var_dump'
          3        IS_EQUAL                                         ~3      !0, ''
          4      > JMPZ_EX                                          ~3      ~3, ->7
          5    >   IS_EQUAL                                         ~4      !0, 'a'
          6        BOOL                                             ~3      ~4
          7    >   SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'var_dump'
         10        CAST                                          6  ~6      !0
         11        IS_IDENTICAL                                     ~7      ~6, ''
         12      > JMPZ_EX                                          ~7      ~7, ->16
         13    >   CAST                                          6  ~8      !0
         14        IS_IDENTICAL                                     ~9      ~8, 'a'
         15        BOOL                                             ~7      ~9
         16    >   SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FlRsM9%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lRsM9
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FlRsM9%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.85 ms | 1395 KiB | 15 Q