3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; function callIsNull($arg) { return is_null($arg); } var_dump(callIsNull(null)); eval(' namespace Test; function is_null($arg) { return false; } '); var_dump(callIsNull(null));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qF7cK
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_NS_FCALL_BY_NAME                                    'Test%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'Test%5CcallIsNull'
          2        SEND_VAL_EX                                              null
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
   11     6        INCLUDE_OR_EVAL                                          '%0Anamespace+Test%3B%0A%0Afunction+is_null%28%24arg%29+%7B%0A++++return+false%3B%0A%7D%0A', EVAL
   19     7        INIT_NS_FCALL_BY_NAME                                    'Test%5Cvar_dump'
          8        INIT_NS_FCALL_BY_NAME                                    'Test%5CcallIsNull'
          9        SEND_VAL_EX                                              null
         10        DO_FCALL                                      0  $3      
         11        SEND_VAR_NO_REF_EX                                       $3
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function test%5Ccallisnull:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qF7cK
function name:  Test\callIsNull
number of ops:  6
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_NS_FCALL_BY_NAME                                    'Test%5Cis_null'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
    7     5*     > RETURN                                                   null

End of function test%5Ccallisnull

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.9 ms | 1398 KiB | 19 Q