3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.26 ms | 1385 KiB | 15 Q