3v4l.org

run code in 300+ PHP versions simultaneously
<?php $afca = preg_match('/ags/', 'www.domain.com/agis/foo.html'); $foo = $afca ? 'a' : 'b'; print_r($foo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKtJN
function name:  (null)
number of ops:  14
compiled vars:  !0 = $afca, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2Fags%2F'
          2        SEND_VAL                                                 'www.domain.com%2Fagis%2Ffoo.html'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5      > JMPZ                                                     !0, ->8
          6    >   QM_ASSIGN                                        ~4      'a'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~4      'b'
          9    >   ASSIGN                                                   !1, ~4
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.68 ms | 1394 KiB | 17 Q