3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = 1; $id = 0; $x = ($id == true) || (($data['created'] = $now) == true); var_dump($x, $data); $id = 1; $now = 2; $x = ($id == true) || (($data['created'] = $now) == true); var_dump($x, $data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/Kv5Pc
function name:  (null)
number of ops:  27
compiled vars:  !0 = $now, !1 = $id, !2 = $x, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        ASSIGN                                                   !1, 0
    6     2        BOOL                                             ~6      !1
          3      > JMPNZ_EX                                         ~6      ~6, ->8
          4    >   ASSIGN_DIM                                       ~7      !3, 'created'
          5        OP_DATA                                                  !0
          6        BOOL                                             ~8      ~7
          7        BOOL                                             ~6      ~8
          8    >   ASSIGN                                                   !2, ~6
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
    9    13        ASSIGN                                                   !1, 1
   10    14        ASSIGN                                                   !0, 2
   12    15        BOOL                                             ~13     !1
         16      > JMPNZ_EX                                         ~13     ~13, ->21
         17    >   ASSIGN_DIM                                       ~14     !3, 'created'
         18        OP_DATA                                                  !0
         19        BOOL                                             ~15     ~14
         20        BOOL                                             ~13     ~15
         21    >   ASSIGN                                                   !2, ~13
   13    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.03 ms | 1395 KiB | 15 Q