3v4l.org

run code in 300+ PHP versions simultaneously
<?php $im = imagecreate(1,1); foreach (range(0,255) as $r) { foreach (range(0,255) as $g) { foreach (range(0,255) as $b) { $c = imagecolorallocate($im,$r,$g,$b); if (-1 == $c) { var_dump($r, $g, $b); } } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 42
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 42
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 40
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 40
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 38
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 38
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 37
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 37
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 38
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 40
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
filename:       /in/tKXp3
function name:  (null)
number of ops:  44
compiled vars:  !0 = $im, !1 = $r, !2 = $g, !3 = $b, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'imagecreate'
          1        SEND_VAL_EX                                              1
          2        SEND_VAL_EX                                              1
          3        DO_FCALL                                      0  $5      
          4        ASSIGN                                                   !0, $5
    4     5        INIT_FCALL                                               'range'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 255
          8        DO_ICALL                                         $7      
          9      > FE_RESET_R                                       $8      $7, ->42
         10    > > FE_FETCH_R                                               $8, !1, ->42
    5    11    >   INIT_FCALL                                               'range'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 255
         14        DO_ICALL                                         $9      
         15      > FE_RESET_R                                       $10     $9, ->40
         16    > > FE_FETCH_R                                               $10, !2, ->40
    6    17    >   INIT_FCALL                                               'range'
         18        SEND_VAL                                                 0
         19        SEND_VAL                                                 255
         20        DO_ICALL                                         $11     
         21      > FE_RESET_R                                       $12     $11, ->38
         22    > > FE_FETCH_R                                               $12, !3, ->38
    7    23    >   INIT_FCALL_BY_NAME                                       'imagecolorallocate'
         24        SEND_VAR_EX                                              !0
         25        SEND_VAR_EX                                              !1
         26        SEND_VAR_EX                                              !2
         27        SEND_VAR_EX                                              !3
         28        DO_FCALL                                      0  $13     
         29        ASSIGN                                                   !4, $13
    8    30        IS_EQUAL                                                 !4, -1
         31      > JMPZ                                                     ~15, ->37
    9    32    >   INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !1
         34        SEND_VAR                                                 !2
         35        SEND_VAR                                                 !3
         36        DO_ICALL                                                 
    6    37    > > JMP                                                      ->22
         38    >   FE_FREE                                                  $12
    5    39      > JMP                                                      ->16
         40    >   FE_FREE                                                  $10
    4    41      > JMP                                                      ->10
         42    >   FE_FREE                                                  $8
   13    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.18 ms | 1405 KiB | 17 Q