3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = [ 'sadsad' => NULL, 'sadsadads' => new DateTime() ]; var_dump((bool) array_sum($ar));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pO0hA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_ARRAY                                       ~1      null, 'sadsad'
    6     1        NEW                                              $2      'DateTime'
          2        DO_FCALL                                      0          
          3        ADD_ARRAY_ELEMENT                                ~1      $2, 'sadsadads'
    4     4        ASSIGN                                                   !0, ~1
    9     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_sum'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        BOOL                                             ~6      $5
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.84 ms | 1394 KiB | 17 Q