3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strtolower('x'.('' === $a = 5 ? true : strpos('f', $a))));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
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: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tmrCi
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'strtolower'
          2      > JMPZ                                                     5, ->5
          3    >   QM_ASSIGN                                        ~1      <true>
          4      > JMP                                                      ->10
          5    >   INIT_FCALL                                               'strpos'
          6        SEND_VAL                                                 'f'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        QM_ASSIGN                                        ~1      $2
         10    >   ASSIGN                                           ~3      !0, ~1
         11        IS_IDENTICAL                                     ~4      ~3, ''
         12        CONCAT                                           ~5      'x', ~4
         13        SEND_VAL                                                 ~5
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.67 ms | 1395 KiB | 19 Q