3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 1,2,3,4, array("wat" => "watdf8u38472309ufj"), ); $mt = microtime(true); $_arr = eval(utf8_decode(var_export($arr, true))); print microtime(true) - $mt."\n\n"; $mt = microtime(true); $_f = create_function("", "return ".utf8_decode(var_export($arr, true)).";"); $_arr = call_user_func($_f); print microtime(true) - $mt."\n\n"; $mt = microtime(true); $_arr = include "data://text/php,base64;".base64_encode("return ".utf8_decode(var_export($arr, true)).";"); print microtime(true) - $mt."\n\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Aqrg
function name:  (null)
number of ops:  73
compiled vars:  !0 = $arr, !1 = $mt, !2 = $_arr, !3 = $_f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    9     5        INIT_FCALL                                               'utf8_decode'
          6        INIT_FCALL                                               'var_export'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        INCLUDE_OR_EVAL                                  $9      $8, EVAL
         13        ASSIGN                                                   !2, $9
   10    14        INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $11     
         17        SUB                                              ~12     $11, !1
         18        CONCAT                                           ~13     ~12, '%0A%0A'
         19        ECHO                                                     ~13
   12    20        INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !1, $14
   13    24        INIT_FCALL_BY_NAME                                       'create_function'
         25        SEND_VAL_EX                                              ''
         26        INIT_FCALL                                               'utf8_decode'
         27        INIT_FCALL                                               'var_export'
         28        SEND_VAR                                                 !0
         29        SEND_VAL                                                 <true>
         30        DO_ICALL                                         $16     
         31        SEND_VAR                                                 $16
         32        DO_ICALL                                         $17     
         33        CONCAT                                           ~18     'return+', $17
         34        CONCAT                                           ~19     ~18, '%3B'
         35        SEND_VAL_EX                                              ~19
         36        DO_FCALL                                      0  $20     
         37        ASSIGN                                                   !3, $20
   14    38        INIT_USER_CALL                                0          'call_user_func', !3
         39        DO_FCALL                                      0  $22     
         40        ASSIGN                                                   !2, $22
   15    41        INIT_FCALL                                               'microtime'
         42        SEND_VAL                                                 <true>
         43        DO_ICALL                                         $24     
         44        SUB                                              ~25     $24, !1
         45        CONCAT                                           ~26     ~25, '%0A%0A'
         46        ECHO                                                     ~26
   17    47        INIT_FCALL                                               'microtime'
         48        SEND_VAL                                                 <true>
         49        DO_ICALL                                         $27     
         50        ASSIGN                                                   !1, $27
   18    51        INIT_FCALL                                               'base64_encode'
         52        INIT_FCALL                                               'utf8_decode'
         53        INIT_FCALL                                               'var_export'
         54        SEND_VAR                                                 !0
         55        SEND_VAL                                                 <true>
         56        DO_ICALL                                         $29     
         57        SEND_VAR                                                 $29
         58        DO_ICALL                                         $30     
         59        CONCAT                                           ~31     'return+', $30
         60        CONCAT                                           ~32     ~31, '%3B'
         61        SEND_VAL                                                 ~32
         62        DO_ICALL                                         $33     
         63        CONCAT                                           ~34     'data%3A%2F%2Ftext%2Fphp%2Cbase64%3B', $33
         64        INCLUDE_OR_EVAL                                  $35     ~34, INCLUDE
         65        ASSIGN                                                   !2, $35
   19    66        INIT_FCALL                                               'microtime'
         67        SEND_VAL                                                 <true>
         68        DO_ICALL                                         $37     
         69        SUB                                              ~38     $37, !1
         70        CONCAT                                           ~39     ~38, '%0A%0A'
         71        ECHO                                                     ~39
         72      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.21 ms | 945 KiB | 22 Q