3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("DEBUG", true); error_reporting(defined("DEBUG") ? E_ALL : 0); $a = 1/0; define("DEBUG", false); error_reporting(defined("DEBUG") ? E_ALL : 0); $a = 1/0;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
Branch analysis from position: 23
filename:       /in/5AoIA
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'DEBUG'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'error_reporting'
          5        DEFINED                                                  'DEBUG'
          6      > JMPZ                                                     ~2, ->9
          7    >   QM_ASSIGN                                        ~3      32767
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~3      0
         10    >   SEND_VAL                                                 ~3
         11        DO_ICALL                                                 
    4    12        DIV                                              ~5      1, 0
         13        ASSIGN                                                   !0, ~5
    6    14        INIT_FCALL                                               'define'
         15        SEND_VAL                                                 'DEBUG'
         16        SEND_VAL                                                 <false>
         17        DO_ICALL                                                 
    7    18        INIT_FCALL                                               'error_reporting'
         19        DEFINED                                                  'DEBUG'
         20      > JMPZ                                                     ~8, ->23
         21    >   QM_ASSIGN                                        ~9      32767
         22      > JMP                                                      ->24
         23    >   QM_ASSIGN                                        ~9      0
         24    >   SEND_VAL                                                 ~9
         25        DO_ICALL                                                 
    8    26        DIV                                              ~11     1, 0
         27        ASSIGN                                                   !0, ~11
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.91 ms | 1396 KiB | 17 Q