3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c =1;$value =1; ${'day'.$c.'_hours'} = $value; var_dump(${'day'.$c.'_hours'});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/USeB9
function name:  (null)
number of ops:  13
compiled vars:  !0 = $c, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 1
          1        ASSIGN                                                   !1, 1
    5     2        CONCAT                                           ~4      'day', !0
          3        CONCAT                                           ~5      ~4, '_hours'
          4        FETCH_W                      local               $6      ~5
          5        ASSIGN                                                   $6, !1
    7     6        INIT_FCALL                                               'var_dump'
          7        CONCAT                                           ~8      'day', !0
          8        CONCAT                                           ~9      ~8, '_hours'
          9        FETCH_R                      local               ~10     ~9
         10        SEND_VAL                                                 ~10
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.66 ms | 1394 KiB | 15 Q