3v4l.org

run code in 300+ PHP versions simultaneously
<?php $binary = 0b1110; // 14 var_dump($binary); $hex = bin2hex($binary); // 0xa4 var_dump($hex); // 14 $binary = base_convert($hex, 16, 2); //0b1110 var_dump($binary); // 0b1110
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QEB8e
function name:  (null)
number of ops:  21
compiled vars:  !0 = $binary, !1 = $hex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 14
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'bin2hex'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'base_convert'
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 16
         14        SEND_VAL                                                 2
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !0, $7
    7    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.04 ms | 1395 KiB | 19 Q