3v4l.org

run code in 300+ PHP versions simultaneously
<?php function questionApplicantsAttendance() { $answer = readline("Do you want to attend our PHP conference? [Y/n]"); return strtolower($answer) == 'y'; } $applicantWillAttend = questionApplicantsAttendance(); if($applicantWillAttend) { echo 'You would have fun'; } else { echo 'You would lose a great opportunity'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/02Kpb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $applicantWillAttend
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'questionapplicantsattendance'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
    9     3      > JMPZ                                                     !0, ->6
   10     4    >   ECHO                                                     'You+would+have+fun'
          5      > JMP                                                      ->7
   12     6    >   ECHO                                                     'You+would+lose+a+great+opportunity'
   14     7    > > RETURN                                                   1

Function questionapplicantsattendance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/02Kpb
function name:  questionApplicantsAttendance
number of ops:  10
compiled vars:  !0 = $answer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'readline'
          1        SEND_VAL_EX                                              'Do+you+want+to+attend+our+PHP+conference%3F+%5BY%2Fn%5D'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'strtolower'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        IS_EQUAL                                         ~4      $3, 'y'
          8      > RETURN                                                   ~4
    5     9*     > RETURN                                                   null

End of function questionapplicantsattendance

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.59 ms | 1397 KiB | 16 Q