3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($page['view_duration'] ?? (10 * mt_rand(1,20)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fBEX1
function name:  (null)
number of ops:  12
compiled vars:  !0 = $page
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_DIM_IS                                     ~1      !0, 'view_duration'
          2        COALESCE                                         ~2      ~1
          3        INIT_FCALL                                               'mt_rand'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 20
          6        DO_ICALL                                         $3      
          7        MUL                                              ~4      $3, 10
          8        QM_ASSIGN                                        ~2      ~4
          9        SEND_VAL                                                 ~2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.65 ms | 1432 KiB | 15 Q