3v4l.org

run code in 300+ PHP versions simultaneously
<?php array( 'fromWeightkg', 'toWeightkg', 'value', '1', '0', ); foreach ($array as $value) { var_dump(gr($value)); } function gr($str) { $str[0] = strtoupper($str[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 9
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/N3CWH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > FE_RESET_R                                       $2      !0, ->9
          1    > > FE_FETCH_R                                               $2, !1, ->9
   11     2    >   INIT_FCALL                                               'var_dump'
          3        INIT_FCALL_BY_NAME                                       'gr'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
   10     8      > JMP                                                      ->1
          9    >   FE_FREE                                                  $2
   16    10      > RETURN                                                   1

Function gr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N3CWH
function name:  gr
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        INIT_FCALL                                               'strtoupper'
          2        FETCH_DIM_R                                      ~2      !0, 0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        ASSIGN_DIM                                               !0, 0
          6        OP_DATA                                                  $3
   16     7      > RETURN                                                   null

End of function gr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1395 KiB | 17 Q