3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo hex2bin(7070); echo hex2bin(implode(array_map(function ($v) { return dechex(ord($v)); }, str_split("toto"))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wp8vD
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'hex2bin'
          1        SEND_VAL                                                 7070
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    5     4        INIT_FCALL                                               'hex2bin'
          5        INIT_FCALL                                               'implode'
          6        INIT_FCALL                                               'array_map'
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FWp8vD%3A5%240'
    7     8        SEND_VAL                                                 ~1
          9        INIT_FCALL                                               'str_split'
         10        SEND_VAL                                                 'toto'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                         $5      
         18        ECHO                                                     $5
         19      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FWp8vD%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wp8vD
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'dechex'
          2        INIT_FCALL                                               'ord'
          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%2FWp8vD%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.81 ms | 1396 KiB | 25 Q