3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domainNumber = "3"; if (!substr($domainNumber, 0, 1) == '_') { $domainNumber = "_$domainNumber"; } var_dump($domainNumber);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/nqTB7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $domainNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '3'
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        BOOL_NOT                                         ~3      $2
          7        IS_EQUAL                                                 ~3, '_'
          8      > JMPZ                                                     ~4, ->12
    6     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~5      '_', !0
         11        ASSIGN                                                   !0, ~5
    9    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.49 ms | 1394 KiB | 17 Q