3v4l.org

run code in 300+ PHP versions simultaneously
<?php $can_set = true; if (!function_exists('set_time_limit')) $can_set = false; // Are we able to use the function $current_time_limit = ini_get('max_execution_time'); @set_time_limit(123); $new_time_limit = ini_get('max_execution_time'); @set_time_limit($current_time_limit); if (empty($current_time_limit) || $current_time_limit === $new_time_limit) $can_set = false; echo $current_time_limit, ' ', (int) $can_set, ' ' , $new_time_limit;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 29
Branch analysis from position: 7
filename:       /in/0225K
function name:  (null)
number of ops:  38
compiled vars:  !0 = $can_set, !1 = $current_time_limit, !2 = $new_time_limit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    5     1        INIT_FCALL                                               'function_exists'
          2        SEND_VAL                                                 'set_time_limit'
          3        DO_ICALL                                         $4      
          4        BOOL_NOT                                         ~5      $4
          5      > JMPZ                                                     ~5, ->7
    6     6    >   ASSIGN                                                   !0, <false>
    9     7    >   INIT_FCALL                                               'ini_get'
          8        SEND_VAL                                                 'max_execution_time'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
   10    11        BEGIN_SILENCE                                    ~9      
         12        INIT_FCALL                                               'set_time_limit'
         13        SEND_VAL                                                 123
         14        DO_ICALL                                                 
         15        END_SILENCE                                              ~9
   11    16        INIT_FCALL                                               'ini_get'
         17        SEND_VAL                                                 'max_execution_time'
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !2, $11
   12    20        BEGIN_SILENCE                                    ~13     
         21        INIT_FCALL                                               'set_time_limit'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24        END_SILENCE                                              ~13
   14    25        ISSET_ISEMPTY_CV                                 ~15     !1
         26      > JMPNZ_EX                                         ~15     ~15, ->29
         27    >   IS_IDENTICAL                                     ~16     !1, !2
         28        BOOL                                             ~15     ~16
         29    > > JMPZ                                                     ~15, ->31
   15    30    >   ASSIGN                                                   !0, <false>
   17    31    >   ECHO                                                     !1
         32        ECHO                                                     '+'
         33        CAST                                          4  ~18     !0
         34        ECHO                                                     ~18
         35        ECHO                                                     '+'
         36        ECHO                                                     !2
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.29 ms | 1396 KiB | 19 Q