3v4l.org

run code in 500+ PHP versions simultaneously
<?php function all_to_lower(...$args){ foreach($args as &$arg){ $arg = strtolower($arg); } return $args; } $in = all_to_lower('REW','YTYE'); print_r($in);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AYfq0
function name:  (null)
number of ops:  9
compiled vars:  !0 = $in
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'all_to_lower'
          1        SEND_VAL                                                     'REW'
          2        SEND_VAL                                                     'YTYE'
          3        DO_FCALL                                          0  $1      
          4        ASSIGN                                                       !0, $1
   14     5        INIT_FCALL                                                   'print_r'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Function all_to_lower:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/AYfq0
function name:  all_to_lower
number of ops:  11
compiled vars:  !0 = $args, !1 = $arg
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV_VARIADIC                                        !0      
    5     1      > FE_RESET_RW                                          $2      !0, ->8
          2    > > FE_FETCH_RW                                                  $2, !1, ->8
    6     3    >   INIT_FCALL                                                   'strtolower'
          4        SEND_VAR                                                     !1
          5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !1, $3
    5     7      > JMP                                                          ->2
          8    >   FE_FREE                                                      $2
    9     9      > RETURN                                                       !0
   10    10*     > RETURN                                                       null

End of function all_to_lower

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.59 ms | 2172 KiB | 16 Q