3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = chr(4) . chr(53) . chr(124); var_dump(implode(array_map(function($c) { return str_pad(decbin(ord($c)), 8, '0', STR_PAD_LEFT); }, str_split($str))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dtfSQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%045%7C'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'implode'
          3        INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FdtfSQ%3A5%240'
          5        SEND_VAL                                                 ~2
          6        INIT_FCALL                                               'str_split'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FdtfSQ%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dtfSQ
function name:  {closure}
number of ops:  15
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'str_pad'
          2        INIT_FCALL                                               'decbin'
          3        INIT_FCALL                                               'ord'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        SEND_VAL                                                 8
         10        SEND_VAL                                                 '0'
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $3      
         13      > RETURN                                                   $3
         14*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.03 ms | 1400 KiB | 27 Q