3v4l.org

run code in 300+ PHP versions simultaneously
<?php $levels = [1,2,3,4,5,6]; $digits = count($levels); print sprintf("%0" . $digits . "d",decbin(255));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ll446
function name:  (null)
number of ops:  14
compiled vars:  !0 = $levels, !1 = $digits
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~3      !0
          2        ASSIGN                                                   !1, ~3
    4     3        INIT_FCALL                                               'sprintf'
          4        CONCAT                                           ~5      '%250', !1
          5        CONCAT                                           ~6      ~5, 'd'
          6        SEND_VAL                                                 ~6
          7        INIT_FCALL                                               'decbin'
          8        SEND_VAL                                                 255
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        ECHO                                                     $8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.47 ms | 1394 KiB | 17 Q