3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($a, $b='bbb', $c='ccc') { echo "$a = " . $a; echo "\n$b = " . $b; echo "\n$c = " . $c; } test('aaa', $c='xxx');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/esjQj
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 'aaa'
          2        ASSIGN                                           ~1      !0, 'xxx'
          3        SEND_VAL                                                 ~1
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/esjQj
function name:  test
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'bbb'
          2        RECV_INIT                                        !2      'ccc'
    3     3        NOP                                                      
          4        FAST_CONCAT                                      ~3      !0, '+%3D+'
          5        CONCAT                                           ~4      ~3, !0
          6        ECHO                                                     ~4
    4     7        ROPE_INIT                                     3  ~6      '%0A'
          8        ROPE_ADD                                      1  ~6      ~6, !1
          9        ROPE_END                                      2  ~5      ~6, '+%3D+'
         10        CONCAT                                           ~8      ~5, !1
         11        ECHO                                                     ~8
    5    12        ROPE_INIT                                     3  ~10     '%0A'
         13        ROPE_ADD                                      1  ~10     ~10, !2
         14        ROPE_END                                      2  ~9      ~10, '+%3D+'
         15        CONCAT                                           ~12     ~9, !2
         16        ECHO                                                     ~12
    6    17      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.55 ms | 1398 KiB | 14 Q