3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(!![]); // Empty array var_dump(!![48]); // Non-empty array var_dump(!!0); // Zero var_dump(!!38); // Non-zero var_dump(!!""); // Empty string var_dump(!!"foo"); // Non-empty string var_dump(!!(new stdClass())); // Empty object var_dump(!!null); // null
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/81SJE
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 <false>
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAL                                                 <false>
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAL                                                 <false>
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                                 
   12    18        INIT_FCALL                                               'var_dump'
         19        NEW                                              $6      'stdClass'
         20        DO_FCALL                                      0          
         21        BOOL_NOT                                         ~8      $6
         22        BOOL_NOT                                         ~9      ~8
         23        SEND_VAL                                                 ~9
         24        DO_ICALL                                                 
   14    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAL                                                 <false>
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.95 ms | 998 KiB | 14 Q