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; $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 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 8
filename:       /in/dSalM
function name:  (null)
number of ops:  26
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
   11    14        BOOL                                             ~12     !1
         15      > JMPNZ_EX                                         ~12     ~12, ->20
         16    >   ASSIGN_DIM                                       ~13     !3, 'created'
         17        OP_DATA                                                  !0
         18        BOOL                                             ~14     ~13
         19        BOOL                                             ~12     ~14
         20    >   ASSIGN                                                   !2, ~12
   12    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !2
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.45 ms | 1400 KiB | 15 Q