3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($a, $b = null) { var_dump($a); var_dump(isset($a)); var_dump(is_null($a)); var_dump($b); var_dump(isset($b)); var_dump(is_null($b)); } a(); print "---"; a(1); print "---"; a(1,2); print "---"; a(null); print "---"; a(null, null); print "---";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tIb9i
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0          
          2        ECHO                                                     '---'
   13     3        INIT_FCALL                                               'a'
          4        SEND_VAL                                                 1
          5        DO_FCALL                                      0          
          6        ECHO                                                     '---'
   14     7        INIT_FCALL                                               'a'
          8        SEND_VAL                                                 1
          9        SEND_VAL                                                 2
         10        DO_FCALL                                      0          
         11        ECHO                                                     '---'
   15    12        INIT_FCALL                                               'a'
         13        SEND_VAL                                                 null
         14        DO_FCALL                                      0          
         15        ECHO                                                     '---'
   16    16        INIT_FCALL                                               'a'
         17        SEND_VAL                                                 null
         18        SEND_VAL                                                 null
         19        DO_FCALL                                      0          
         20        ECHO                                                     '---'
         21      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tIb9i
function name:  a
number of ops:  25
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'var_dump'
          6        ISSET_ISEMPTY_CV                                 ~3      !0
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        TYPE_CHECK                                    2  ~5      !0
         11        SEND_VAL                                                 ~5
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        ISSET_ISEMPTY_CV                                 ~8      !1
         18        SEND_VAL                                                 ~8
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'var_dump'
         21        TYPE_CHECK                                    2  ~10     !1
         22        SEND_VAL                                                 ~10
         23        DO_ICALL                                                 
   10    24      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.4 ms | 1403 KiB | 20 Q