3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6EEAb
function name:  test
number of ops:  10
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        CONCAT                                           ~3      '%24a+%3D+', !0
          4        ECHO                                                     ~3
    4     5        CONCAT                                           ~4      '%24b+%3D+', !1
          6        ECHO                                                     ~4
    5     7        CONCAT                                           ~5      '%24c+%3D+', !2
          8        ECHO                                                     ~5
    6     9      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.76 ms | 1396 KiB | 14 Q