3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'hello world'; $result = join('', array_map( function ($word) { return ucfirst(strrev($word)); }, explode('', $message) ) ); print var_export($result, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NXMjX
function name:  (null)
number of ops:  21
compiled vars:  !0 = $message, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello+world'
    3     1        INIT_FCALL                                               'join'
          2        SEND_VAL                                                 ''
    4     3        INIT_FCALL                                               'array_map'
    5     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNXMjX%3A5%240'
    7     5        SEND_VAL                                                 ~3
    8     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
    3    14        ASSIGN                                                   !1, $6
   12    15        INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !1
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $8      
         19        ECHO                                                     $8
         20      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FNXMjX%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.2 ms | 1396 KiB | 25 Q