3v4l.org

run code in 300+ PHP versions simultaneously
<?php $body = 0; function isTotallyNull($body){ if ($body !== null) { echo var_export($body,true).' is not null'.PHP_EOL; }else{ echo var_export($body,true).' is null'.PHP_EOL; } } isTotallyNull(null); isTotallyNull(1); isTotallyNull(0); isTotallyNull('lolz');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kIKOW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
   13     1        INIT_FCALL                                               'istotallynull'
          2        SEND_VAL                                                 null
          3        DO_FCALL                                      0          
   14     4        INIT_FCALL                                               'istotallynull'
          5        SEND_VAL                                                 1
          6        DO_FCALL                                      0          
   15     7        INIT_FCALL                                               'istotallynull'
          8        SEND_VAL                                                 0
          9        DO_FCALL                                      0          
   16    10        INIT_FCALL                                               'istotallynull'
         11        SEND_VAL                                                 'lolz'
         12        DO_FCALL                                      0          
   18    13      > RETURN                                                   1

Function istotallynull:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kIKOW
function name:  isTotallyNull
number of ops:  19
compiled vars:  !0 = $body
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        TYPE_CHECK                                  1020          !0
          2      > JMPZ                                                     ~1, ->11
    7     3    >   INIT_FCALL                                               'var_export'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $2      
          7        CONCAT                                           ~3      $2, '+is+not+null'
          8        CONCAT                                           ~4      ~3, '%0A'
          9        ECHO                                                     ~4
         10      > JMP                                                      ->18
    9    11    >   INIT_FCALL                                               'var_export'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $5      
         15        CONCAT                                           ~6      $5, '+is+null'
         16        CONCAT                                           ~7      ~6, '%0A'
         17        ECHO                                                     ~7
   11    18    > > RETURN                                                   null

End of function istotallynull

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.82 ms | 1403 KiB | 19 Q