3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=scandir('/bin/'); print_r($a); file_put_contents('/tmp/ttee','uu'); $a=scandir('/tmp/'); print_r($a); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gI1ZW
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'scandir'
          1        SEND_VAL                                                 '%2Fbin%2F'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'file_put_contents'
          8        SEND_VAL                                                 '%2Ftmp%2Fttee'
          9        SEND_VAL                                                 'uu'
         10        DO_ICALL                                                 
   10    11        INIT_FCALL                                               'scandir'
         12        SEND_VAL                                                 '%2Ftmp%2F'
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !0, $5
   11    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   15    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.77 ms | 1394 KiB | 19 Q