3v4l.org

run code in 300+ PHP versions simultaneously
<?php $qwe = '123'; $id = (int)$qwe ?: throw new Exception();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/dQPYR
function name:  (null)
number of ops:  9
compiled vars:  !0 = $qwe, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '123'
    4     1        CAST                                          4  ~3      !0
          2        JMP_SET                                          ~4      ~3, ->7
          3        NEW                                              $5      'Exception'
          4        DO_FCALL                                      0          
          5      > THROW                                         1          $5
          6*       QM_ASSIGN                                        ~4      <true>
          7*       ASSIGN                                                   !1, ~4
          8*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.71 ms | 1392 KiB | 13 Q