3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(strtolower('x'.('' === $a = 5 ? true : 0 === strpos('5', $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 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4VUD3
function name:  (null)
number of ops:  19
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                                                      ->11
          5    >   INIT_FCALL                                               'strpos'
          6        SEND_VAL                                                 '5'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        IS_IDENTICAL                                     ~3      $2, 0
         10        QM_ASSIGN                                        ~1      ~3
         11    >   ASSIGN                                           ~4      !0, ~1
         12        IS_IDENTICAL                                     ~5      ~4, ''
         13        CONCAT                                           ~6      'x', ~5
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.22 ms | 1395 KiB | 19 Q