3v4l.org

run code in 300+ PHP versions simultaneously
<?php function do_thing(array $initial_options) { $final_options = $initial_options + [ "minimum_number_of_times" => 1, "maximum_number_of_times" => 3, "abort_if_failure" => true ]; var_dump($final_options); // ... } do_thing([ "maximum_number_of_times" => 5, "abort_if_failure" => false ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SuAln
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'do_thing'
   16     1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
   18     3      > RETURN                                                   1

Function do_thing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SuAln
function name:  do_thing
number of ops:  7
compiled vars:  !0 = $initial_options, !1 = $final_options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ADD                                              ~2      !0, <array>
    4     2        ASSIGN                                                   !1, ~2
   10     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
   13     6      > RETURN                                                   null

End of function do_thing

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.1 ms | 1396 KiB | 16 Q