3v4l.org

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

Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1nWru
function name:  f1
number of ops:  5
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of function f1

Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1nWru
function name:  f2
number of ops:  5
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      <false>
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    9     4      > RETURN                                                   null

End of function f2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.39 ms | 1399 KiB | 23 Q