3v4l.org

run code in 300+ PHP versions simultaneously
<?php // define $handle $handle = fopen('compress.zlib://tmp/test.foo', 'w'); // define $data $data = 'test'; fwrite($handle, $data, strlen($data)); fclose($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7WXmI
function name:  (null)
number of ops:  16
compiled vars:  !0 = $handle, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fopen'
          1        SEND_VAL                                                 'compress.zlib%3A%2F%2Ftmp%2Ftest.foo'
          2        SEND_VAL                                                 'w'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    6     5        ASSIGN                                                   !1, 'test'
    8     6        INIT_FCALL                                               'fwrite'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        STRLEN                                           ~5      !1
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
   10    12        INIT_FCALL                                               'fclose'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.09 ms | 1394 KiB | 19 Q