3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'beta.aws-iwatech.com'; $dev = 'aws-iwatech.com'; $name = strpos($name, $dev) ? $dev : $name; var_dump($name);
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TONWW
function name:  (null)
number of ops:  15
compiled vars:  !0 = $name, !1 = $dev
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'beta.aws-iwatech.com'
    3     1        ASSIGN                                                   !1, 'aws-iwatech.com'
    4     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->9
          7    >   QM_ASSIGN                                        ~5      !1
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~5      !0
         10    >   ASSIGN                                                   !0, ~5
    5    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.59 ms | 1394 KiB | 17 Q