3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo1($a=null, $b) { printf("foo1: %s\n%s", var_export($a, true), var_export($b, true)); } //function foo2($a, $b=null, $c) { // var_dump($a); // var_dump($b); // var_dump($c); //} foo1(1, 2); foo1(3); //foo2(4); //foo2(4, 5); //foo2(4, 5, 6);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lv1AU
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'foo1'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        DO_FCALL                                      0          
   14     4        INIT_FCALL                                               'foo1'
          5        SEND_VAL                                                 3
          6        DO_FCALL                                      0          
   18     7      > RETURN                                                   1

Function foo1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lv1AU
function name:  foo1
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'printf'
          3        SEND_VAL                                                 'foo1%3A+%25s%0A%25s'
          4        INIT_FCALL                                               'var_export'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                                 
    5    15      > RETURN                                                   null

End of function foo1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.21 ms | 1398 KiB | 19 Q