3v4l.org

run code in 300+ PHP versions simultaneously
<?php json_encode(fopen('php://temp', 'rw+')); var_dump(json_last_error()); json_encode(['hello', 'world']); var_dump(json_last_error());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cvdUj
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 'php%3A%2F%2Ftemp'
          3        SEND_VAL                                                 'rw%2B'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'json_last_error'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'json_encode'
         13        SEND_VAL                                                 <array>
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'json_last_error'
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.29 ms | 1395 KiB | 21 Q