3v4l.org

run code in 500+ 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                              ~4      [0]
    8     4        SEND_VAL                                                     ~4
    5     5        DO_ICALL                                             $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


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWV9S
function name:  {closure:/in/OWV9S:5}
number of ops:  6
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        FRAMELESS_ICALL_1                dechex              ~2      !1
          3        ASSIGN_OP                                         8          !0, ~2
    7     4      > RETURN                                                       !0
    8     5*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.54 ms | 3320 KiB | 15 Q