3v4l.org

run code in 300+ PHP versions simultaneously
<?php $return = 0x080200000143EF3A; file_put_contents("/tmp/toto", "test"); chmod("/tmp/toto", 0777); echo system("/tmp/toto"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rg97h
function name:  (null)
number of ops:  14
compiled vars:  !0 = $return
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 577023702278074170
    3     1        INIT_FCALL                                               'file_put_contents'
          2        SEND_VAL                                                 '%2Ftmp%2Ftoto'
          3        SEND_VAL                                                 'test'
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'chmod'
          6        SEND_VAL                                                 '%2Ftmp%2Ftoto'
          7        SEND_VAL                                                 511
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'system'
         10        SEND_VAL                                                 '%2Ftmp%2Ftoto'
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.18 ms | 1386 KiB | 19 Q