3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string ='jean carlo'; echo array_walk(str_split($string), function($entry){$total+=ord($entry);}, $total);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/951dJ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $string, !1 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'jean+carlo'
    6     1        INIT_FCALL                                               'array_walk'
          2        INIT_FCALL                                               'str_split'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR_NO_REF                               0          $3
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F951dJ%3A6%240'
          7        SEND_VAL                                                 ~4
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F951dJ%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/951dJ
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $entry, !1 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'ord'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN_OP                                     1          !1, $2
          5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F951dJ%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.52 ms | 1395 KiB | 19 Q