3v4l.org

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

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S4sfh
function name:  test
number of ops:  7
compiled vars:  !0 = $arg1, !1 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      'arg1'
          1        RECV_INIT                                        !1      'arg2'
    4     2        CONCAT                                           ~2      'arg1+%3D+', !0
          3        CONCAT                                           ~3      ~2, '+arg2+%3D+'
          4        CONCAT                                           ~4      ~3, !1
          5        ECHO                                                     ~4
    5     6      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.23 ms | 1401 KiB | 14 Q