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) ) ); if ($result === null) {print 'yes';} else {print 'no';};
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2G8Fn
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%2F2G8Fn%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        TYPE_CHECK                                    2          !1
         16      > JMPZ                                                     ~8, ->19
         17    >   ECHO                                                     'yes'
         18      > JMP                                                      ->20
         19    >   ECHO                                                     'no'
         20    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F2G8Fn%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2G8Fn
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%2F2G8Fn%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.94 ms | 1396 KiB | 23 Q