3v4l.org

run code in 500+ PHP versions simultaneously
<?php $bit = log(64,2); echo gettype(6)."\n"; echo gettype($bit)."\n"; echo (int)$bit."\n"; echo round($bit)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Zogme
function name:  (null)
number of ops:  20
compiled vars:  !0 = $bit
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'log'
          1        SEND_VAL                                                     64
          2        SEND_VAL                                                     2
          3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
    3     5        GET_TYPE                                             ~3      6
          6        CONCAT                                               ~4      ~3, '%0A'
          7        ECHO                                                         ~4
    4     8        GET_TYPE                                             ~5      !0
          9        CONCAT                                               ~6      ~5, '%0A'
         10        ECHO                                                         ~6
    5    11        CAST                                              4  ~7      !0
         12        CONCAT                                               ~8      ~7, '%0A'
         13        ECHO                                                         ~8
    6    14        INIT_FCALL                                                   'round'
         15        SEND_VAR                                                     !0
         16        DO_ICALL                                             $9      
         17        CONCAT                                               ~10     $9, '%0A'
         18        ECHO                                                         ~10
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.68 ms | 2248 KiB | 15 Q