3v4l.org

run code in 300+ PHP versions simultaneously
<?php function addCaps( Iterator $it ) { echo ucfirst( $it->current() ) . '<br />'; return true; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hA1AT
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   1

Function addcaps:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hA1AT
function name:  addCaps
number of ops:  10
compiled vars:  !0 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'ucfirst'
          2        INIT_METHOD_CALL                                         !0, 'current'
          3        DO_FCALL                                      0  $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      $2, '%3Cbr+%2F%3E'
          7        ECHO                                                     ~3
    5     8      > RETURN                                                   <true>
    6     9*     > RETURN                                                   null

End of function addcaps

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.88 ms | 1394 KiB | 15 Q