3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $contributors = ['rod', 'elias']; $results = array_walk($contributors, function(string $contributor) : string { return sprintf("%s, thank you very much for PHP7!", $contributor); }); echo implode("\n", $results);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qTHLW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $contributors, !1 = $results
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_walk'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FqTHLW%3A8%240'
   10     4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
    8     6        ASSIGN                                                   !1, $4
   11     7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '%0A'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FqTHLW%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qTHLW
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $contributor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%25s%2C+thank+you+very+much+for+PHP7%21'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        VERIFY_RETURN_TYPE                                       $1
          6      > RETURN                                                   $1
   10     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FqTHLW%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.78 ms | 1395 KiB | 19 Q