3v4l.org

run code in 300+ PHP versions simultaneously
<?php function estado($date_atual1, $date_insc1 ){ $date_insc1=2025-01-12; $date_atual1=2029-01-05; $st; 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();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pGeKW
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'estado'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

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

End of function estado

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.28 ms | 1399 KiB | 16 Q