3v4l.org

run code in 300+ PHP versions simultaneously
<?php $groups_json = false; $handle = fopen( '/tmp/test.json', 'w' ); fwrite( $handle, '{Personal Data Export for tester@test.com:' ); fwrite( $handle, $groups_json ); fwrite( $handle, '}' ); fclose( $handle ); var_dump( file_get_contents( '/tmp/test.json' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpmqG
function name:  (null)
number of ops:  28
compiled vars:  !0 = $groups_json, !1 = $handle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <false>
    5     1        INIT_FCALL                                               'fopen'
          2        SEND_VAL                                                 '%2Ftmp%2Ftest.json'
          3        SEND_VAL                                                 'w'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        INIT_FCALL                                               'fwrite'
          7        SEND_VAR                                                 !1
          8        SEND_VAL                                                 '%7BPersonal+Data+Export+for+tester%40test.com%3A'
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'fwrite'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    8    14        INIT_FCALL                                               'fwrite'
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 '%7D'
         17        DO_ICALL                                                 
    9    18        INIT_FCALL                                               'fclose'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
   11    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'file_get_contents'
         23        SEND_VAL                                                 '%2Ftmp%2Ftest.json'
         24        DO_ICALL                                         $9      
         25        SEND_VAR                                                 $9
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.29 ms | 1463 KiB | 18 Q