3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "0x80" + 0; var_dump($a); $converted = base_convert($a, 16, 2); printf("\n%b\n",$converted); printf("\n%d\n",bindec($converted)); var_dump($a == $converted,$a,bindec($converted));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4g62E
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $converted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ADD                                              ~2      '0x80', 0
          1        ASSIGN                                                   !0, ~2
    3     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'base_convert'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 16
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    5    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 '%0A%25b%0A'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 '%0A%25d%0A'
         17        INIT_FCALL                                               'bindec'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'var_dump'
         23        IS_EQUAL                                         ~10     !0, !1
         24        SEND_VAL                                                 ~10
         25        SEND_VAR                                                 !0
         26        INIT_FCALL                                               'bindec'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $11     
         29        SEND_VAR                                                 $11
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.07 ms | 1395 KiB | 21 Q