3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'yop'; $b = 'lo'; if (($b = $a) && printf($b)) { echo 'works'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 8
filename:       /in/OkQcN
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'yop'
    3     1        ASSIGN                                                   !1, 'lo'
    4     2        ASSIGN                                           ~4      !1, !0
          3      > JMPZ_EX                                          ~4      ~4, ->8
          4    >   INIT_FCALL                                               'printf'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        BOOL                                             ~4      $5
          8    > > JMPZ                                                     ~4, ->10
    5     9    >   ECHO                                                     'works'
    6    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.75 ms | 1385 KiB | 15 Q