3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constants = preg_grep('/^E_/', array_keys(get_defined_constants())); $constants = array_combine($constants, array_map('constant', $constants)); asort($constants); foreach ($constants as $constant => $value) { printf("%016b %s\n", $value, $constant); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 31
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 31
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/KPOAi
function name:  (null)
number of ops:  33
compiled vars:  !0 = $constants, !1 = $value, !2 = $constant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_grep'
          1        SEND_VAL                                                 '%2F%5EE_%2F'
          2        INIT_FCALL                                               'array_keys'
          3        INIT_FCALL                                               'get_defined_constants'
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !0, $5
    4    10        INIT_FCALL                                               'array_combine'
         11        SEND_VAR                                                 !0
         12        INIT_FCALL                                               'array_map'
         13        SEND_VAL                                                 'constant'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !0, $8
    5    19        INIT_FCALL                                               'asort'
         20        SEND_REF                                                 !0
         21        DO_ICALL                                                 
    7    22      > FE_RESET_R                                       $11     !0, ->31
         23    > > FE_FETCH_R                                       ~12     $11, !1, ->31
         24    >   ASSIGN                                                   !2, ~12
    8    25        INIT_FCALL                                               'printf'
         26        SEND_VAL                                                 '%25016b+%25s%0A'
         27        SEND_VAR                                                 !1
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                                 
    7    30      > JMP                                                      ->23
         31    >   FE_FREE                                                  $11
    9    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.58 ms | 1396 KiB | 27 Q