3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = fputs(null, 'test'); if ($result === FALSE) { throw new \RuntimeException('Unable to write data: ' . substr('test', 0, 20)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hFZIn
function name:  (null)
number of ops:  18
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'fputs'
          1        SEND_VAL                                                 null
          2        SEND_VAL                                                 'test'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        TYPE_CHECK                                    4          !0
          6      > JMPZ                                                     ~3, ->17
    4     7    >   NEW                                              $4      'RuntimeException'
          8        INIT_FCALL                                               'substr'
          9        SEND_VAL                                                 'test'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 20
         12        DO_ICALL                                         $5      
         13        CONCAT                                           ~6      'Unable+to+write+data%3A+', $5
         14        SEND_VAL_EX                                              ~6
         15        DO_FCALL                                      0          
         16      > THROW                                         0          $4
    5    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.52 ms | 1395 KiB | 17 Q