3v4l.org

run code in 300+ PHP versions simultaneously
<?php for (;;) { $code = false; // you will inject the code to execute with xdebug api here xdebug_break(); if (false === $code) { break; } unset($result); unset($exception); try { $result = eval($code); } catch (\Exception $exception) { continue; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 1
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
filename:       /in/l4NsD
function name:  (null)
number of ops:  16
compiled vars:  !0 = $code, !1 = $result, !2 = $exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMP                                                      ->14
    4     1    >   ASSIGN                                                   !0, <false>
    6     2        INIT_FCALL_BY_NAME                                       'xdebug_break'
          3        DO_FCALL                                      0          
    8     4        TYPE_CHECK                                    4          !0
          5      > JMPZ                                                     ~5, ->7
    9     6    > > JMP                                                      ->15
   12     7    >   UNSET_CV                                                 !1
   13     8        UNSET_CV                                                 !2
   16     9        INCLUDE_OR_EVAL                                  $6      !0, EVAL
         10        ASSIGN                                                   !1, $6
         11      > JMP                                                      ->14
   17    12  E > > CATCH                                       last         'Exception'
   18    13    > > JMP                                                      ->14
         14    > > JMPNZ                                                    <true>, ->1
   20    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.71 ms | 1398 KiB | 13 Q