3v4l.org

run code in 300+ PHP versions simultaneously
<?php defined('DS') or define('DS', DIRECTORY_SEPARATOR); defined('DS') or print("Not definded DS in program."); $x==3 and $x = rand(1, 99);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/DjdCr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $x
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   DEFINED                                          ~1      'DS'
         1      > JMPNZ_EX                                         ~1      ~1, ->7
         2    >   INIT_FCALL                                               'define'
         3        SEND_VAL                                                 'DS'
         4        SEND_VAL                                                 '%2F'
         5        DO_ICALL                                         $2      
         6        BOOL                                             ~1      $2
   4     7    >   DEFINED                                          ~3      'DS'
         8      > JMPNZ_EX                                         ~3      ~3, ->11
         9    >   ASSIGN_OBJ                                               'Not+definded+DS+in+program.'
        10        BOOL                                             ~3      1
   5    11    >   IS_NOT_EQUAL                                     ~4      !0, 3
        12      > JMPZ_EX                                          ~4      ~4, ->19
        13    >   INIT_FCALL                                               'rand'
        14        SEND_VAL                                                 1
        15        SEND_VAL                                                 99
        16        DO_ICALL                                         $5      
        17        QM_ASSIGN                                        $6      !0
        18        BOOL                                             ~4      $6
        19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
12.99 ms | 408 KiB | 7 Q