3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = -5; echo $b,"\n"; // -5 printf("%b\n",$b); // -5 $c = base_convert($b,10,2); // echo bindec($c); // 5
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UZeFX
function name:  (null)
number of ops:  18
compiled vars:  !0 = $b, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, -5
    3     1        ECHO                                                     !0
          2        ECHO                                                     '%0A'
    4     3        INIT_FCALL                                               'printf'
          4        SEND_VAL                                                 '%25b%0A'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'base_convert'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 10
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !1, $4
    6    13        INIT_FCALL                                               'bindec'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $6      
         16        ECHO                                                     $6
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.73 ms | 1394 KiB | 19 Q