3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is not true/false bolean either. var_dump( (bool) null ); // These do not directly correlate to boolean, // i.e. they don't mean the same as boolean. var_dump( (bool) array( false ) ); var_dump( (bool) new stdClass ); var_dump( (bool) 'This is an example string.' ); var_dump( (bool) static function() { return false; } ); // Anonmyous function: callback.
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m5fBl
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        BOOL                                             ~0      null
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    8     4        INIT_FCALL                                               'var_dump'
          5        BOOL                                             ~2      <array>
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'var_dump'
          9        NEW                                              $4      'stdClass'
         10        DO_FCALL                                      0          
         11        BOOL                                             ~6      $4
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
   10    14        INIT_FCALL                                               'var_dump'
         15        BOOL                                             ~8      'This+is+an+example+string.'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'var_dump'
         19        DECLARE_LAMBDA_FUNCTION                          ~10     [0]
         20        BOOL                                             ~11     ~10
         21        SEND_VAL                                                 ~11
         22        DO_ICALL                                                 
         23      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m5fBl
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E > > RETURN                                                   <false>
          1*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.08 ms | 1451 KiB | 14 Q