3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "\xff\xff\xff\x00"; $b = "\xff\xff\x01\x00"; echo PHP_VERSION. "\n"; echo bin2hex(current(unpack("a4", $a & $b)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8mmFH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%FF%FF%FF%00'
    3     1        ASSIGN                                                   !1, '%FF%FF%01%00'
    5     2        ECHO                                                     '8.0.0%0A'
    7     3        INIT_FCALL                                               'bin2hex'
          4        INIT_FCALL                                               'current'
          5        INIT_FCALL                                               'unpack'
          6        SEND_VAL                                                 'a4'
          7        BW_AND                                           ~4      !0, !1
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.21 ms | 1394 KiB | 19 Q