3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "0"; var_dump("0"); $str = (boolean) $str; var_dump($str); var_dump($str == true); // true
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gqFBr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0'
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 '0'
          3        DO_ICALL                                                 
    5     4        BOOL                                             ~3      !0
          5        ASSIGN                                                   !0, ~3
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        BOOL                                             ~6      !0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
215.41 ms | 941 KiB | 16 Q