3v4l.org

run code in 300+ PHP versions simultaneously
<?php // conversion btw boolean and string values var_dump("", $b = (bool)"", (string) $b); echo "\n"; var_dump("0", $b = (bool)"0", (string) $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TX7KX
function name:  (null)
number of ops:  18
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 ''
          2        BOOL                                             ~1      ''
          3        ASSIGN                                           ~2      !0, ~1
          4        SEND_VAL                                                 ~2
          5        CAST                                          6  ~3      !0
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    4     8        ECHO                                                     '%0A'
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 '0'
         11        BOOL                                             ~5      '0'
         12        ASSIGN                                           ~6      !0, ~5
         13        SEND_VAL                                                 ~6
         14        CAST                                          6  ~7      !0
         15        SEND_VAL                                                 ~7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.1 ms | 1394 KiB | 15 Q