3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.67 ms | 1394 KiB | 15 Q