3v4l.org

run code in 500+ PHP versions simultaneously
<?php class ErrorWrapper { public $context; public $var = self::INVALID; } stream_wrapper_register('error',ErrorWrapper::class); file_get_contents('error://test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KKqGn
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                                   'stream_wrapper_register'
          1        SEND_VAL                                                     'error'
          2        SEND_VAL                                                     'ErrorWrapper'
          3        DO_ICALL                                                     
    7     4        INIT_FCALL                                                   'file_get_contents'
          5        SEND_VAL                                                     'error%3A%2F%2Ftest'
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Class ErrorWrapper: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.44 ms | 2063 KiB | 15 Q