3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = rtrim(base64_encode(rtrim(pack('E', 1.2), "\x00")), '='); var_dump($i); var_dump(unpack('E', str_pad(base64_decode($i), 8, "\x00")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QdLQB
function name:  (null)
number of ops:  35
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'rtrim'
          1        INIT_FCALL                                               'base64_encode'
          2        INIT_FCALL                                               'rtrim'
          3        INIT_FCALL                                               'pack'
          4        SEND_VAL                                                 'E'
          5        SEND_VAL                                                 1.2
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        SEND_VAL                                                 '%00'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        SEND_VAL                                                 '%3D'
         14        DO_ICALL                                         $4      
         15        ASSIGN                                                   !0, $4
    4    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
    5    19        INIT_FCALL                                               'var_dump'
         20        INIT_FCALL                                               'unpack'
         21        SEND_VAL                                                 'E'
         22        INIT_FCALL                                               'str_pad'
         23        INIT_FCALL                                               'base64_decode'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $7      
         26        SEND_VAR                                                 $7
         27        SEND_VAL                                                 8
         28        SEND_VAL                                                 '%00'
         29        DO_ICALL                                         $8      
         30        SEND_VAR                                                 $8
         31        DO_ICALL                                         $9      
         32        SEND_VAR                                                 $9
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.41 ms | 1018 KiB | 20 Q