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($data, 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/RtJrZ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $result, !1 = $data
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                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        TYPE_CHECK                                    4          !0
          6      > JMPZ                                                     ~4, ->17
    4     7    >   NEW                                              $5      'RuntimeException'
          8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 20
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      'Unable+to+write+data%3A+', $6
         14        SEND_VAL_EX                                              ~7
         15        DO_FCALL                                      0          
         16      > THROW                                         0          $5
    5    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.75 ms | 1395 KiB | 17 Q