3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = trim("0x030"); if( str_split($input) == array(0,0,0,0) || strcmp($input, "0000") == 0 || strcmp($input, "000") == 0 || strcmp($input, "00") == 0 || strcmp($input, "0") == 0 || $input === 0 || preg_match("/^[\d]{1,}$/D", $input) )print("FAIL"); if($input == "0000") print("SUCCESS"); print(chr($input)); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 47) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
2 jumps found. (Code = 47) Position 1 = 30, Position 2 = 36
Branch analysis from position: 30
2 jumps found. (Code = 47) Position 1 = 37, Position 2 = 39
Branch analysis from position: 37
2 jumps found. (Code = 47) Position 1 = 40, Position 2 = 45
Branch analysis from position: 40
2 jumps found. (Code = 43) Position 1 = 46, Position 2 = 47
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 50
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
Branch analysis from position: 47
Branch analysis from position: 45
Branch analysis from position: 39
Branch analysis from position: 36
Branch analysis from position: 29
Branch analysis from position: 22
Branch analysis from position: 15
filename:       /in/ZolDW
function name:  (null)
number of ops:  55
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'trim'
          1        SEND_VAL                                                 '0x030'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'str_split'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        IS_EQUAL                                         ~4      $3, <array>
          8      > JMPNZ_EX                                         ~4      ~4, ->15
    5     9    >   INIT_FCALL                                               'strcmp'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 '0000'
         12        DO_ICALL                                         $5      
         13        IS_EQUAL                                         ~6      $5, 0
         14        BOOL                                             ~4      ~6
         15    > > JMPNZ_EX                                         ~4      ~4, ->22
    6    16    >   INIT_FCALL                                               'strcmp'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '000'
         19        DO_ICALL                                         $7      
         20        IS_EQUAL                                         ~8      $7, 0
         21        BOOL                                             ~4      ~8
         22    > > JMPNZ_EX                                         ~4      ~4, ->29
    7    23    >   INIT_FCALL                                               'strcmp'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 '00'
         26        DO_ICALL                                         $9      
         27        IS_EQUAL                                         ~10     $9, 0
         28        BOOL                                             ~4      ~10
         29    > > JMPNZ_EX                                         ~4      ~4, ->36
    8    30    >   INIT_FCALL                                               'strcmp'
         31        SEND_VAR                                                 !0
         32        SEND_VAL                                                 '0'
         33        DO_ICALL                                         $11     
         34        IS_EQUAL                                         ~12     $11, 0
         35        BOOL                                             ~4      ~12
         36    > > JMPNZ_EX                                         ~4      ~4, ->39
    9    37    >   IS_IDENTICAL                                     ~13     !0, 0
         38        BOOL                                             ~4      ~13
         39    > > JMPNZ_EX                                         ~4      ~4, ->45
   10    40    >   INIT_FCALL                                               'preg_match'
         41        SEND_VAL                                                 '%2F%5E%5B%5Cd%5D%7B1%2C%7D%24%2FD'
         42        SEND_VAR                                                 !0
         43        DO_ICALL                                         $14     
         44        BOOL                                             ~4      $14
         45    > > JMPZ                                                     ~4, ->47
   11    46    >   ECHO                                                     'FAIL'
   14    47    >   IS_EQUAL                                                 !0, '0000'
         48      > JMPZ                                                     ~15, ->50
         49    >   ECHO                                                     'SUCCESS'
   15    50    >   INIT_FCALL                                               'chr'
         51        SEND_VAR                                                 !0
         52        DO_ICALL                                         $16     
         53        ECHO                                                     $16
   16    54      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.89 ms | 1400 KiB | 23 Q