3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [66, 233, 204, 205]; $res = array_reduce( $arr, function($c,$i) { $c.=dechex( $i ); return $c; }); $temp = "0x" . $res; // 0x42e9cccd var_dump($temp + 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWV9S
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $res, !2 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_reduce'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FOWV9S%3A5%240'
    8     4        SEND_VAL                                                 ~4
          5        DO_ICALL                                         $5      
    5     6        ASSIGN                                                   !1, $5
   10     7        CONCAT                                           ~7      '0x', !1
          8        ASSIGN                                                   !2, ~7
   11     9        INIT_FCALL                                               'var_dump'
         10        ADD                                              ~9      !2, 0
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.72 ms | 1400 KiB | 19 Q