3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = -5; echo $b,"\n"; // -5 printf("%b\n%b\n",5,$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/KmYTo
function name:  (null)
number of ops:  19
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%25b%0A'
          5        SEND_VAL                                                 5
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'base_convert'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 10
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $4      
         13        ASSIGN                                                   !1, $4
    6    14        INIT_FCALL                                               'bindec'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $6      
         17        ECHO                                                     $6
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.7 ms | 1394 KiB | 19 Q