3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = array(); foreach(get_defined_constants() as $name => $value) if (strpos($name, 'IMAGETYPE') === 0) $c[$name] = $value; asort($c); foreach ($c as $name => $value) echo "$name = $value\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 15
filename:       /in/gOYkO
function name:  (null)
number of ops:  30
compiled vars:  !0 = $c, !1 = $value, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
          1        INIT_FCALL                                               'get_defined_constants'
          2        DO_ICALL                                         $4      
          3      > FE_RESET_R                                       $5      $4, ->15
          4    > > FE_FETCH_R                                       ~6      $5, !1, ->15
          5    >   ASSIGN                                                   !2, ~6
          6        INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 'IMAGETYPE'
          9        DO_ICALL                                         $8      
         10        IS_IDENTICAL                                             $8, 0
         11      > JMPZ                                                     ~9, ->14
         12    >   ASSIGN_DIM                                               !0, !2
         13        OP_DATA                                                  !1
         14    > > JMP                                                      ->4
         15    >   FE_FREE                                                  $5
         16        INIT_FCALL                                               'asort'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                                 
         19      > FE_RESET_R                                       $12     !0, ->28
         20    > > FE_FETCH_R                                       ~13     $12, !1, ->28
         21    >   ASSIGN                                                   !2, ~13
         22        ROPE_INIT                                     4  ~16     !2
         23        ROPE_ADD                                      1  ~16     ~16, '+%3D+'
         24        ROPE_ADD                                      2  ~16     ~16, !1
         25        ROPE_END                                      3  ~15     ~16, '%0A'
         26        ECHO                                                     ~15
         27      > JMP                                                      ->20
         28    >   FE_FREE                                                  $12
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.8 ms | 1396 KiB | 19 Q