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; $mt = microtime(true); $_f = create_function("", "return ".utf8_decode(var_export($arr, true)).";"); $_arr = call_user_func($_f); print microtime(true) - $mt; $mt = microtime(true); $_arr = include "data://text/php,base64;".base64_encode("return ".utf8_decode(var_export($arr, true)).";"); print microtime(true) - $mt;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ekJZU
function name:  (null)
number of ops:  70
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        ECHO                                                     ~12
   12    19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !1, $13
   13    23        INIT_FCALL_BY_NAME                                       'create_function'
         24        SEND_VAL_EX                                              ''
         25        INIT_FCALL                                               'utf8_decode'
         26        INIT_FCALL                                               'var_export'
         27        SEND_VAR                                                 !0
         28        SEND_VAL                                                 <true>
         29        DO_ICALL                                         $15     
         30        SEND_VAR                                                 $15
         31        DO_ICALL                                         $16     
         32        CONCAT                                           ~17     'return+', $16
         33        CONCAT                                           ~18     ~17, '%3B'
         34        SEND_VAL_EX                                              ~18
         35        DO_FCALL                                      0  $19     
         36        ASSIGN                                                   !3, $19
   14    37        INIT_USER_CALL                                0          'call_user_func', !3
         38        DO_FCALL                                      0  $21     
         39        ASSIGN                                                   !2, $21
   15    40        INIT_FCALL                                               'microtime'
         41        SEND_VAL                                                 <true>
         42        DO_ICALL                                         $23     
         43        SUB                                              ~24     $23, !1
         44        ECHO                                                     ~24
   17    45        INIT_FCALL                                               'microtime'
         46        SEND_VAL                                                 <true>
         47        DO_ICALL                                         $25     
         48        ASSIGN                                                   !1, $25
   18    49        INIT_FCALL                                               'base64_encode'
         50        INIT_FCALL                                               'utf8_decode'
         51        INIT_FCALL                                               'var_export'
         52        SEND_VAR                                                 !0
         53        SEND_VAL                                                 <true>
         54        DO_ICALL                                         $27     
         55        SEND_VAR                                                 $27
         56        DO_ICALL                                         $28     
         57        CONCAT                                           ~29     'return+', $28
         58        CONCAT                                           ~30     ~29, '%3B'
         59        SEND_VAL                                                 ~30
         60        DO_ICALL                                         $31     
         61        CONCAT                                           ~32     'data%3A%2F%2Ftext%2Fphp%2Cbase64%3B', $31
         62        INCLUDE_OR_EVAL                                  $33     ~32, INCLUDE
         63        ASSIGN                                                   !2, $33
   19    64        INIT_FCALL                                               'microtime'
         65        SEND_VAL                                                 <true>
         66        DO_ICALL                                         $35     
         67        SUB                                              ~36     $35, !1
         68        ECHO                                                     ~36
         69      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.17 ms | 1400 KiB | 21 Q