3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($args = array()) { $foo = null; $bar = null; $baz = null; extract($args); var_dump($foo); var_dump($bar); var_dump($baz); } test(array('foo' => 'foo', 'baz' => 'baz'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5kYTA
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 <array>
          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/5kYTA
function name:  test
number of ops:  17
compiled vars:  !0 = $args, !1 = $foo, !2 = $bar, !3 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      <array>
    3     1        ASSIGN                                                   !1, null
    4     2        ASSIGN                                                   !2, null
    5     3        ASSIGN                                                   !3, null
    7     4        INIT_FCALL                                               'extract'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                                 
    9     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   11    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
   12    16      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1389 KiB | 18 Q