3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_insc1; $date_atual1; $st; function estado($date_atual1, $date_insc1 ){ if (strtotime($date_atual1 < $date_insc1)){ return $st = 1; //return true; //echo 'Inscrições abertas'; }elseif (strtotime($date_atual1 == $date_insc1)){ return $st = 1; //return true; //echo 'Inscrições abertas'; }else{ return $st = 0; //echo 'Inscrições encerradas '; //return false; //echo $st; } return $st; } echo estado(2028-01-12,2025-01-12);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fX6Dh
function name:  (null)
number of ops:  6
compiled vars:  !0 = $date_insc1, !1 = $date_atual1, !2 = $st
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   INIT_FCALL                                               'estado'
          1        SEND_VAL                                                 2015
          2        SEND_VAL                                                 2012
          3        DO_FCALL                                      0  $3      
          4        ECHO                                                     $3
          5      > RETURN                                                   1

Function estado:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fX6Dh
function name:  estado
number of ops:  22
compiled vars:  !0 = $date_atual1, !1 = $date_insc1, !2 = $st
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        INIT_FCALL                                               'strtotime'
          3        IS_SMALLER                                       ~3      !0, !1
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->10
   10     7    >   ASSIGN                                           ~5      !2, 1
          8      > RETURN                                                   ~5
          9*       JMP                                                      ->20
   13    10    >   INIT_FCALL                                               'strtotime'
         11        IS_EQUAL                                         ~6      !0, !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14      > JMPZ                                                     $7, ->18
   14    15    >   ASSIGN                                           ~8      !2, 1
         16      > RETURN                                                   ~8
         17*       JMP                                                      ->20
   18    18    >   ASSIGN                                           ~9      !2, 0
         19      > RETURN                                                   ~9
   23    20*       RETURN                                                   !2
   24    21*     > RETURN                                                   null

End of function estado

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.45 ms | 1399 KiB | 16 Q